summaryrefslogtreecommitdiff
path: root/test.sh
diff options
context:
space:
mode:
authorLibravatar Avery Pennarun <apenwarr@gmail.com>2009-10-02 15:22:15 -0400
committerLibravatar Avery Pennarun <apenwarr@gmail.com>2009-10-02 16:08:58 -0400
commit6f2012cdc021f6b47ed19bc7fe64159ce9eeda8a (patch)
tree1c3fdb6d87802b71bb23d7a4786aee8252e0faea /test.sh
parentMerge branch 'master' of git://github.com/voxpelli/git-subtree (diff)
downloadtgif-6f2012cdc021f6b47ed19bc7fe64159ce9eeda8a.tar.xz
If someone provides a --prefix that ends with slash, strip the slash.
Prefixes that differ only in the trailing slash should be considered identical. Also update the test to check that this works.
Diffstat (limited to 'test.sh')
-rwxr-xr-xtest.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/test.sh b/test.sh
index bed7f27906..12b0456574 100755
--- a/test.sh
+++ b/test.sh
@@ -82,7 +82,7 @@ git branch subdir
git fetch ../subproj sub1
git branch sub1 FETCH_HEAD
-git subtree add --prefix=subdir FETCH_HEAD
+git subtree add --prefix=subdir/ FETCH_HEAD
# this shouldn't actually do anything, since FETCH_HEAD is already a parent
git merge -m 'merge -s -ours' -s ours FETCH_HEAD
@@ -118,7 +118,7 @@ create sub9
git commit -m 'sub9'
cd ../mainline
-split2=$(git subtree split --annotate='*' --prefix subdir --rejoin)
+split2=$(git subtree split --annotate='*' --prefix subdir/ --rejoin)
git branch split2 "$split2"
create subdir/main-sub10