git-stash: fix "no arguments" case in documentation
[gitweb.git] / git-parse-remote.sh
index 437b0c3b1bc522c4b5a4a3a656b97cb2009c43a0..0506b12cb26966cfaa9eb73f3e1d1a9c5d66cc02 100755 (executable)
@@ -143,13 +143,13 @@ canon_refs_list_for_fetch () {
                fi
                case "$remote" in
                '' | HEAD ) remote=HEAD ;;
-               refs/heads/* | refs/tags/* | refs/remotes/*) ;;
+               refs/*) ;;
                heads/* | tags/* | remotes/* ) remote="refs/$remote" ;;
                *) remote="refs/heads/$remote" ;;
                esac
                case "$local" in
                '') local= ;;
-               refs/heads/* | refs/tags/* | refs/remotes/*) ;;
+               refs/*) ;;
                heads/* | tags/* | remotes/* ) local="refs/$local" ;;
                *) local="refs/heads/$local" ;;
                esac