Merge branch 'jc/test-clone' into jc/clone
authorJunio C Hamano <junkio@cox.net>
Tue, 19 Dec 2006 09:38:18 +0000 (01:38 -0800)
committerJunio C Hamano <junkio@cox.net>
Tue, 19 Dec 2006 09:38:18 +0000 (01:38 -0800)
* jc/test-clone: (35 commits)
Introduce GIT_TEMPLATE_DIR
Revert "fix testsuite: make sure they use templates freshly built from the source"
fix testsuite: make sure they use templates freshly built from the source
rerere: fix breakage of resolving.
Add config example with respect to branch
Add documentation for show-branch --topics
make git a bit less cryptic on fetch errors
make patch_delta() error cases a bit more verbose
racy-git: documentation updates.
show-ref: fix --exclude-existing
parse-remote::expand_refs_wildcard()
vim syntax: follow recent changes to commit template
show-ref: fix --verify --hash=length
show-ref: fix --quiet --verify
avoid accessing _all_ loose refs in git-show-ref --verify
git-fetch: Avoid reading packed refs over and over again
Teach show-branch how to show ref-log data.
markup fix in svnimport documentation.
Documentation: new option -P for git-svnimport
Fix mis-mark-up in git-merge-file.txt documentation
...

1  2 
git-parse-remote.sh
diff --combined git-parse-remote.sh
index f27c3c231b991b008a67aa1f8438cac7fb9f611f,bc881cc5f9d932c40f10bf0448aafa3263724c35..11c4aba24448492f1ba1836cded54170a5dde08c
@@@ -111,16 -111,14 +111,14 @@@ expand_refs_wildcard () 
                local_force=
                test "z$lref" = "z$ref" || local_force='+'
                echo "$ls_remote_result" |
+               sed -e '/\^{}$/d' |
                (
                        IFS='   '
                        while read sha1 name
                        do
+                               # ignore the ones that do not start with $from
                                mapped=${name#"$from"}
-                               if test "z$name" != "z${name%'^{}'}" ||
-                                       test "z$name" = "z$mapped"
-                               then
-                                       continue
-                               fi
+                               test "z$name" = "z$mapped" && continue
                                echo "${local_force}${name}:${to}${mapped}"
                        done
                )
@@@ -144,8 -142,7 +142,8 @@@ canon_refs_list_for_fetch () 
                        curr_branch=$(git-symbolic-ref HEAD | \
                            sed -e 's|^refs/heads/||')
                        merge_branches=$(git-repo-config \
 -                          --get-all "branch.${curr_branch}.merge")
 +                          --get-all "branch.${curr_branch}.merge") ||
 +                      merge_branches=.this.would.never.match.any.ref.
                fi
                set x $(expand_refs_wildcard "$@")
                shift