diff options
author | 2010-06-24 02:11:04 -0400 | |
---|---|---|
committer | 2010-06-24 02:11:04 -0400 | |
commit | 8e770bd389f1810a4b1a53da51e0761ca1435f3a (patch) | |
tree | 94ab1c47218efd452a4736341cde635ad2f96597 /test.sh | |
parent | (Hopefully) fix PATH setting for msysgit. (diff) | |
parent | Fixed regression with splitting out new subtree (diff) | |
download | tgif-8e770bd389f1810a4b1a53da51e0761ca1435f3a.tar.xz |
Merge remote branch 'origin/master'
* origin/master:
Fixed regression with splitting out new subtree
Use 'git merge -Xsubtree' when git version >= 1.7.0.
Diffstat (limited to 'test.sh')
-rwxr-xr-x | test.sh | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -294,6 +294,15 @@ git subtree split --prefix subdir --branch mainsub4 # but it wasn't, because it's cache was not set to itself) check_equal "$(git log --pretty=format:%P -1 mainsub4)" "$(git rev-parse sub3)" +mkdir subdir2 +create subdir2/main-sub5 +git commit -m "main-sub5" +git subtree split --prefix subdir2 --branch mainsub5 + +# also test that we still can split out an entirely new subtree +# if the parent of the first commit in the tree isn't empty, +# then the new subtree has accidently been attached to something +check_equal "$(git log --pretty=format:%P -1 mainsub5)" "" # make sure no patch changes more than one file. The original set of commits |