1
0
Fork 0

fix(bin): git-fetch-branch should work when filtering remote braches

This commit is contained in:
Jeremy Kaplan 2024-10-07 11:49:54 -04:00
commit c5f20146dc

View file

@ -23,4 +23,8 @@ case "$#" in
*) usage ;;
esac
exec git fetch "${remote}" "${branch}:${branch}"
# I often change the fetch refmap to only watch my development branches and
# permanent shared ones. Explicitly use a default-ish refmap to undo that and
# make this create a named local branch.
exec git fetch --refmap='+refs/heads/*:refs/remotes/origin/*' "${remote}" "${branch}:${branch}"