fix: can't switch to remote branch by git fragment

This commit is contained in:
leafee98 2024-01-31 14:08:51 +08:00
parent 932f8b695e
commit 24172f0771

View file

@ -261,7 +261,7 @@ function extract_source_single {
if [[ -n "${frag}" ]] ; then
case "${frag%%=*}" in
"branch")
ref="refs/heads/${frag##*=}"
ref="refs/remotes/origin/${frag##*=}"
;;
"tag")
ref="refs/tags/${frag##*=}"