(git)$ git-pull Fetching refs/heads/master from http://www.kernel.org/pub/scm/git/git.git using http * committish: 3cc35e29ec252d0dca1139106fbaa70cb9ad6ef1 branch 'master' of http://www.kernel.org/pub/scm/git/git * refs/heads/origin: same as branch 'master' of http://www.kernel.org/pub/scm/git/git Already up-to-date. Yeeah!
Notice that the git.git directory is truncated. It seems the intension is to truncate at the .git directory level. The following patch fixes it.
Show changes to git-fetch.sh +1 −1
diff --git a/git-fetch.sh b/git-fetch.sh --- a/git-fetch.sh +++ b/git-fetch.sh @@ -70,7 +70,7 @@ append_fetch_head () { *) note_="$remote_name of " ;; esac - remote_1_=$(expr "$remote_" : '\(.*\)\.git/*$') && + remote_1_=$(expr "$remote_" : '\(.*/\)\.git/*$') && remote_="$remote_1_" note_="$note_$remote_"