chiark / gitweb /
Test suite: tartree-edit: gitfetchinfo generates remote/TT-HEAD
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 3 Jul 2016 22:02:37 +0000 (23:02 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 3 Jul 2016 22:02:37 +0000 (23:02 +0100)
Simply HEAD is not displayed by gitk, which is rather a shame.

tests/tartree-edit

index 9fe06e6..f4717fa 100755 (executable)
@@ -153,7 +153,7 @@ tryat_gitfetchinfo () {
        git remote remove "$remote" 2>/dev/null ||:
        git remote add "$remote" $innerwd
        git fetch --no-tags -p "$remote" \
-               +"HEAD:refs/remotes/$remote/HEAD"
+               +"HEAD:refs/remotes/$remote/TT-HEAD"
        cd $innerwd
        GIT_AUTHOR_DATE=$(git log -n1 --pretty=format:'%ai')
        GIT_COMMITTER_DATE=$GIT_AUTHOR_DATE