<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/t/t9100-git-svn-basic.sh, branch v2.4.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.4.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.4.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2013-01-24T10:21:23Z</updated>
<entry>
<title>git-svn: Simplify calculation of GIT_DIR</title>
<updated>2013-01-24T10:21:23Z</updated>
<author>
<name>Barry Wardell</name>
<email>barry.wardell@gmail.com</email>
</author>
<published>2013-01-21T01:22:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=bc93ceb7c5ec959ad275f575a3c49ff491337a8b'/>
<id>urn:sha1:bc93ceb7c5ec959ad275f575a3c49ff491337a8b</id>
<content type='text'>
Since git-rev-parse already checks for the $GIT_DIR environment
variable and that it returns an actual git repository, there is no
need to repeat the checks again here.

This also fixes a problem where git-svn did not work in cases where
.git was a file with a gitdir: link.

[ew: squashed test case,
 delay setting GIT_DIR until after `git rev-parse --cdup` to fix t9101,
 (thanks to Junio)]

Signed-off-by: Barry Wardell &lt;barry.wardell@gmail.com&gt;
Signed-off-by: Eric Wong &lt;normalperson@yhbt.net&gt;
</content>
</entry>
<entry>
<title>t9100: remove bogus " || test" after each test scriptlet</title>
<updated>2012-02-22T05:10:33Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-02-22T05:10:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2ab5ca80f05f6924d7ec1d4c294422a189a792f7'/>
<id>urn:sha1:2ab5ca80f05f6924d7ec1d4c294422a189a792f7</id>
<content type='text'>
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-svn.perl: fix a false-positive in the "already exists" test</title>
<updated>2012-02-21T21:37:31Z</updated>
<author>
<name>Steven Walter</name>
<email>stevenrwalter@gmail.com</email>
</author>
<published>2012-02-20T14:17:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=379862ec5a413e636d977a6ea3d618f0b3eafceb'/>
<id>urn:sha1:379862ec5a413e636d977a6ea3d618f0b3eafceb</id>
<content type='text'>
open_or_add_dir checks to see if the directory already exists or not.
If it already exists and is not a directory, then we fail.  However,
open_or_add_dir did not previously account for the possibility that the
path did exist as a file, but is deleted in the current commit.

In order to prevent this legitimate case from failing, open_or_add_dir
needs to know what files are deleted in the current commit.
Unfortunately that information has to be plumbed through a couple of
layers.

Signed-off-by: Steven Walter &lt;stevenrwalter@gmail.com&gt;
Acked-by: Eric Wong &lt;normalperson@yhbt.net&gt;
</content>
</entry>
<entry>
<title>prefer test -h over test -L in shell scripts</title>
<updated>2010-09-27T17:48:23Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2010-09-22T00:35:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=afa0876050496d4250e8b27680e5cbc60fbda760'/>
<id>urn:sha1:afa0876050496d4250e8b27680e5cbc60fbda760</id>
<content type='text'>
Even though "-L" is POSIX, the former is more portable, and
we tend to prefer it already.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>tests: subshell indentation stylefix</title>
<updated>2010-09-09T22:56:20Z</updated>
<author>
<name>Jonathan Nieder</name>
<email>jrnieder@gmail.com</email>
</author>
<published>2010-09-07T01:42:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=18a826924284339e2b637ab747f196235bee1939'/>
<id>urn:sha1:18a826924284339e2b637ab747f196235bee1939</id>
<content type='text'>
Format the subshells introduced by the previous patch (Several tests:
cd inside subshell instead of around, 2010-09-06) like so:

	(
		cd subdir &amp;&amp;
		...
	) &amp;&amp;

This is generally easier to read and has the nice side-effect that
this patch will show what commands are used in the subshell, making
it easier to check for lost environment variables and similar
behavior changes.

Cc: Jens Lehmann &lt;Jens.Lehmann@web.de&gt;
Signed-off-by: Jonathan Nieder &lt;jrnieder@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jl/maint-fix-test'</title>
<updated>2010-09-06T23:46:36Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2010-09-06T23:46:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=347c47e61e5daf1efb3503724a431e4316c6eb5b'/>
<id>urn:sha1:347c47e61e5daf1efb3503724a431e4316c6eb5b</id>
<content type='text'>
* jl/maint-fix-test:
  Several tests: cd inside subshell instead of around

Conflicts:
	t/t9600-cvsimport.sh
</content>
</entry>
<entry>
<title>Several tests: cd inside subshell instead of around</title>
<updated>2010-09-06T21:30:53Z</updated>
<author>
<name>Jens Lehmann</name>
<email>Jens.Lehmann@web.de</email>
</author>
<published>2010-09-06T18:39:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=fd4ec4f2bb980ce07bb28d5823a95610f251d00b'/>
<id>urn:sha1:fd4ec4f2bb980ce07bb28d5823a95610f251d00b</id>
<content type='text'>
Fixed all places where it was a straightforward change from cd'ing into a
directory and back via "cd .." to a cd inside a subshell.

Found these places with "git grep -w "cd \.\.".

Signed-off-by: Jens Lehmann &lt;Jens.Lehmann@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git svn: fix dcommit to work with touched files</title>
<updated>2010-08-02T21:21:56Z</updated>
<author>
<name>David D. Kilzer</name>
<email>ddkilzer@kilzer.net</email>
</author>
<published>2010-08-02T19:58:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=181264ad590ffef9d956fdd023369869c2d0a55f'/>
<id>urn:sha1:181264ad590ffef9d956fdd023369869c2d0a55f</id>
<content type='text'>
The dcommit command fails if an otherwise unmodified file has
been touched in the working directory:

    Cannot dcommit with a dirty index.  Commit your changes
    first, or stash them with `git stash'.

This happens because "git diff-index" reports a difference
between the index and the filesystem:

    :100644 100644 d00491...... 000000...... M      file

The fix is to run "git update-index --refresh" before
"git diff-index" as is done in git-rebase and
git-rebase--interactive before "git diff-files".

This changes dcommit to display a list of modified files before
exiting.

Also add a similar test case for "git svn rebase".

[ew: rearranged commit message subject]

Signed-off-by: David D. Kilzer &lt;ddkilzer@kilzer.net&gt;
Acked-by: Eric Wong &lt;normalperson@yhbt.net&gt;
</content>
</entry>
<entry>
<title>tests: Skip tests in a way that makes sense under TAP</title>
<updated>2010-06-25T17:08:20Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2010-06-24T17:44:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=fadb5156e485e9d25c89d4b4f96c2d4fe6db6187'/>
<id>urn:sha1:fadb5156e485e9d25c89d4b4f96c2d4fe6db6187</id>
<content type='text'>
SKIP messages are now part of the TAP plan. A TAP harness now knows
why a particular test was skipped and can report that information. The
non-TAP harness built into Git's test-lib did nothing special with
these messages, and is unaffected by these changes.

Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-svn: let 'dcommit $rev' work on $rev instead of HEAD</title>
<updated>2009-06-25T07:38:16Z</updated>
<author>
<name>Thomas Rast</name>
<email>trast@student.ethz.ch</email>
</author>
<published>2009-05-29T15:09:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5eec27e35f0a6231d2b0c50d94c726a67f14b23e'/>
<id>urn:sha1:5eec27e35f0a6231d2b0c50d94c726a67f14b23e</id>
<content type='text'>
'git svn dcommit' takes an optional revision argument, but the meaning
of it was rather scary.  It completely ignored the current state of
the HEAD, only looking at the revisions between SVN and $rev.  If HEAD
was attached to $branch, the branch lost all commits $rev..$branch in
the process.

Considering that 'git svn dcommit HEAD^' has the intuitive meaning
"dcommit all changes on my branch except the last one", we change the
meaning of the revision argument.  git-svn temporarily checks out $rev
for its work, meaning that

* if a branch is specified, that branch (_not_ the HEAD) is rebased as
  part of the dcommit,

* if some other revision is specified, as in the example, all work
  happens on a detached HEAD and no branch is affected.

Signed-off-by: Thomas Rast &lt;trast@student.ethz.ch&gt;
Acked-by: Eric Wong &lt;normalperson@yhbt.net&gt;
</content>
</entry>
</feed>
