fix(bin): git-fetch-branch should work when filtering remote braches
This commit is contained in:
parent
dce2b6dfee
commit
c5f20146dc
1 changed files with 5 additions and 1 deletions
|
|
@ -23,4 +23,8 @@ case "$#" in
|
||||||
*) usage ;;
|
*) usage ;;
|
||||||
esac
|
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}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue