Skip to content

Allow user input for git fetch in repo sync#4328

Merged
samcoe merged 2 commits intotrunkfrom
fix-sync-fetch
Sep 16, 2021
Merged

Allow user input for git fetch in repo sync#4328
samcoe merged 2 commits intotrunkfrom
fix-sync-fetch

Conversation

@samcoe
Copy link
Contributor

@samcoe samcoe commented Sep 15, 2021

This PR modifies repo sync to forward IO streams to the git fetch command.

Fixes #4295

@samcoe samcoe self-assigned this Sep 15, 2021
Comment on lines +75 to +77
cmd.Stdin = g.io.In
cmd.Stdout = g.io.Out
cmd.Stderr = g.io.ErrOut
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding the IOStreams to the gitExecuter felt cleaner than passing it as an argument to Fetch.

@samcoe samcoe requested review from a team and mislav and removed request for a team September 15, 2021 16:13
@samcoe samcoe merged commit 0f7c4d9 into trunk Sep 16, 2021
@samcoe samcoe deleted the fix-sync-fetch branch September 16, 2021 17:15
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 sync is broken - hangs

2 participants