зеркало из https://github.com/microsoft/git.git
git submodule -b ... of current HEAD fails
git submodule add -b $branch $repository fails when HEAD already points to $branch in $repository. Reported-by: Klaus Ethgen <Klaus@Ethgen.de> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Acked-by: Jens Lehmann <Jens.Lehmann@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Родитель
87b50542a0
Коммит
502dc5b663
|
@ -241,7 +241,7 @@ cmd_add()
|
||||||
# ash fails to wordsplit ${branch:+-b "$branch"...}
|
# ash fails to wordsplit ${branch:+-b "$branch"...}
|
||||||
case "$branch" in
|
case "$branch" in
|
||||||
'') git checkout -f -q ;;
|
'') git checkout -f -q ;;
|
||||||
?*) git checkout -f -q -b "$branch" "origin/$branch" ;;
|
?*) git checkout -f -q -B "$branch" "origin/$branch" ;;
|
||||||
esac
|
esac
|
||||||
) || die "Unable to checkout submodule '$path'"
|
) || die "Unable to checkout submodule '$path'"
|
||||||
fi
|
fi
|
||||||
|
|
Загрузка…
Ссылка в новой задаче