<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/t/t9800-git-p4-basic.sh, branch v2.9.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.9.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.9.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2015-11-24T20:20:15Z</updated>
<entry>
<title>git-p4: work with a detached head</title>
<updated>2015-11-24T20:20:15Z</updated>
<author>
<name>Luke Diamand</name>
<email>luke@diamand.org</email>
</author>
<published>2015-11-21T09:54:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=00ad6e3182bbe68a94eaedf322918e4f266d184f'/>
<id>urn:sha1:00ad6e3182bbe68a94eaedf322918e4f266d184f</id>
<content type='text'>
When submitting, git-p4 finds the current branch in
order to know if it is allowed to submit (configuration
"git-p4.allowSubmit").

On a detached head, detecting the branch would fail, and
git-p4 would report a cryptic error.

This change teaches git-p4 to recognise a detached head and
submit successfully.

Signed-off-by: Luke Diamand &lt;luke@diamand.org&gt;
Signed-off-by: Jeff King &lt;peff@peff.net&gt;
</content>
</entry>
<entry>
<title>git-p4: add failing test for submit from detached head</title>
<updated>2015-11-24T20:20:15Z</updated>
<author>
<name>Luke Diamand</name>
<email>luke@diamand.org</email>
</author>
<published>2015-11-21T09:54:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=74b6fe9202792f43ba01014599c8fe183149c0a3'/>
<id>urn:sha1:74b6fe9202792f43ba01014599c8fe183149c0a3</id>
<content type='text'>
git-p4 can't submit from a detached head. This test case
demonstrates the problem.

Signed-off-by: Luke Diamand &lt;luke@diamand.org&gt;
Signed-off-by: Jeff King &lt;peff@peff.net&gt;
</content>
</entry>
<entry>
<title>git-p4: add tests for non-numeric revision range</title>
<updated>2015-06-10T15:29:10Z</updated>
<author>
<name>Luke Diamand</name>
<email>luke@diamand.org</email>
</author>
<published>2015-06-10T07:30:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=eceafffbec97385eb65d7ba0c365ee028aaf1aad'/>
<id>urn:sha1:eceafffbec97385eb65d7ba0c365ee028aaf1aad</id>
<content type='text'>
Test that git-p4 can handle a sync with a non-numeric revision
range (e.g. a date).

Signed-off-by: Luke Diamand &lt;luke@diamand.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>tests: fix negated test_i18ngrep calls</title>
<updated>2014-08-13T20:12:06Z</updated>
<author>
<name>Johannes Sixt</name>
<email>j6t@kdbg.org</email>
</author>
<published>2014-08-13T19:30:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=41ca19b6a6ca5ad6fea246bd400717c16b80b32c'/>
<id>urn:sha1:41ca19b6a6ca5ad6fea246bd400717c16b80b32c</id>
<content type='text'>
The helper function test_i18ngrep pretends that it found the expected
results when it is running under GETTEXT_POISON. For this reason, it must
not be used negated like so

   ! test_i18ngrep foo bar

because the test case would fail under GETTEXT_POISON. The function offers
a special syntax to test that a pattern is *not* found:

   test_i18ngrep ! foo bar

Convert incorrect uses to this syntax.

Signed-off-by: Johannes Sixt &lt;j6t@kdbg.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git p4: generate better error message for bad depot path</title>
<updated>2013-01-27T06:00:38Z</updated>
<author>
<name>Pete Wyckoff</name>
<email>pw@padd.com</email>
</author>
<published>2013-01-27T03:11:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0f487d308d819cf6c64b866cb2f5c366a13b1639'/>
<id>urn:sha1:0f487d308d819cf6c64b866cb2f5c366a13b1639</id>
<content type='text'>
Depot paths must start with //.  Exit with a better explanation
when a bad depot path is supplied.

Signed-off-by: Pete Wyckoff &lt;pw@padd.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git p4: verify expected refs in clone --bare test</title>
<updated>2013-01-15T17:46:29Z</updated>
<author>
<name>Pete Wyckoff</name>
<email>pw@padd.com</email>
</author>
<published>2013-01-15T00:47:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=695d69989429e9268c0587e3606399fc9d6cd6fa'/>
<id>urn:sha1:695d69989429e9268c0587e3606399fc9d6cd6fa</id>
<content type='text'>
Make sure that the standard branches are created as expected.

Signed-off-by: Pete Wyckoff &lt;pw@padd.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git p4 test: display unresolvable host error</title>
<updated>2012-11-26T19:00:49Z</updated>
<author>
<name>Pete Wyckoff</name>
<email>pw@padd.com</email>
</author>
<published>2012-11-23T22:35:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e6777fde8d0ede84202ed1cc5ec0a175e0e52ab0'/>
<id>urn:sha1:e6777fde8d0ede84202ed1cc5ec0a175e0e52ab0</id>
<content type='text'>
This test passes already.  Make sure p4 diagnostic errors are displayed.

Signed-off-by: Pete Wyckoff &lt;pw@padd.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git p4: catch p4 errors when streaming file contents</title>
<updated>2012-11-26T19:00:34Z</updated>
<author>
<name>Pete Wyckoff</name>
<email>pw@padd.com</email>
</author>
<published>2012-11-23T22:35:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=78189bead3f5fde22ae651d66208a0e0a375a819'/>
<id>urn:sha1:78189bead3f5fde22ae651d66208a0e0a375a819</id>
<content type='text'>
Error messages that arise during the "p4 print" phase of
generating commits were silently ignored.  Catch them,
abort the fast-import, and exit.

Without this fix, the sync/clone appears to work, but files that
are inaccessible by the p4d server will still be imported to git,
although without the proper contents.  Instead the errant files
will contain a p4 error message, such as "Librarian checkout
//depot/path failed".

Signed-off-by: Pete Wyckoff &lt;pw@padd.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git p4 test: refactor marshal_dump</title>
<updated>2012-07-06T06:22:00Z</updated>
<author>
<name>Pete Wyckoff</name>
<email>pw@padd.com</email>
</author>
<published>2012-07-04T13:34:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=798d598080a68deb4958d69adacee409a23b467b'/>
<id>urn:sha1:798d598080a68deb4958d69adacee409a23b467b</id>
<content type='text'>
This function will be useful in future tests.  Move it to
the git-p4 test library.  Let it accept an optional argument
to pick a certain marshaled object out of the input stream.

Signed-off-by: Pete Wyckoff &lt;pw@padd.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git p4 test: fix badp4dir test</title>
<updated>2012-06-28T04:06:35Z</updated>
<author>
<name>Pete Wyckoff</name>
<email>pw@padd.com</email>
</author>
<published>2012-06-27T12:01:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a0327c0edc7ada60ae2af5ec8daa5dcfcacd095d'/>
<id>urn:sha1:a0327c0edc7ada60ae2af5ec8daa5dcfcacd095d</id>
<content type='text'>
The construct used to get the return code was flawed, in that
errors in the &amp;&amp;-chain before the semicolon were not caught.  Use
the standard test_expect_code instead.

Set PATH in a subshell instead of relying on the bashism of
setting it just for a single command.

And fix the grep line so it doesn't worry about grep segfaults,
and doesn't fail for i18n issues.

Reported-by: Johannes Sixt &lt;j.sixt@viscovery.net&gt;
Signed-off-by: Pete Wyckoff &lt;pw@padd.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
