Skip to content

Only fetch default branch when adding upstream remote#2588

Merged
vilmibm merged 3 commits intocli:trunkfrom
cdce8p:gh-clone-fetch
Jan 21, 2021
Merged

Only fetch default branch when adding upstream remote#2588
vilmibm merged 3 commits intocli:trunkfrom
cdce8p:gh-clone-fetch

Conversation

@cdce8p
Copy link
Contributor

@cdce8p cdce8p commented Dec 9, 2020

This PR modifies the git remote add -f upstream command run during gh repo clone. Previously it would fetch all all branch references. I have modified it to only fetch the default upstream branch.

See the linked issue for more details.

Fixes: #2557

--
cc: @mislav, @samcoe

@vilmibm vilmibm self-assigned this Jan 20, 2021
@vilmibm vilmibm merged commit 29805a4 into cli:trunk Jan 21, 2021
@cdce8p cdce8p deleted the gh-clone-fetch branch January 21, 2021 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gh repo clone specify upstream fetch args

3 participants