提交 799596a5 编写于 作者: D Dan McGee 提交者: Junio C Hamano

completion: remove use of dashed git commands

Signed-off-by: NDan McGee <dpmcgee@gmail.com>
Acked-by: NShawn O. Pearce <spearce@spearce.org>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 3903c618
......@@ -152,7 +152,7 @@ __git_heads ()
done
return
fi
for i in $(git-ls-remote "$1" 2>/dev/null); do
for i in $(git ls-remote "$1" 2>/dev/null); do
case "$is_hash,$i" in
y,*) is_hash=n ;;
n,*^{}) is_hash=y ;;
......@@ -173,7 +173,7 @@ __git_tags ()
done
return
fi
for i in $(git-ls-remote "$1" 2>/dev/null); do
for i in $(git ls-remote "$1" 2>/dev/null); do
case "$is_hash,$i" in
y,*) is_hash=n ;;
n,*^{}) is_hash=y ;;
......@@ -200,7 +200,7 @@ __git_refs ()
done
return
fi
for i in $(git-ls-remote "$dir" 2>/dev/null); do
for i in $(git ls-remote "$dir" 2>/dev/null); do
case "$is_hash,$i" in
y,*) is_hash=n ;;
n,*^{}) is_hash=y ;;
......@@ -223,7 +223,7 @@ __git_refs2 ()
__git_refs_remotes ()
{
local cmd i is_hash=y
for i in $(git-ls-remote "$1" 2>/dev/null); do
for i in $(git ls-remote "$1" 2>/dev/null); do
case "$is_hash,$i" in
n,refs/heads/*)
is_hash=y
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册