-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for resolving conflicts when pulling from remote git branch. [INS-4550] #8118
Conversation
4787645
to
cb79001
Compare
cb79001
to
4ebda98
Compare
4ebda98
to
259161b
Compare
rebased with latest develop and fixed lint issue |
f9783da
to
9339772
Compare
Could you add some description to let us know what changes were made? |
a41d721
to
4e49ff7
Compare
Did some testing and it works great! LGTM! Next steps for Git:
|
console.log('[git] Pull remote=origin', await this.getCurrentBranch()); | ||
return git.pull({ | ||
...this._baseOpts, | ||
...gitCallbacks(gitCredentials), | ||
remote: 'origin', | ||
singleBranch: true, | ||
}).catch( | ||
async err => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest that the logic in catch can be split into several separate functions. The current function is too long and difficult to read.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commitMessage: string; | ||
commitParent: string[]; | ||
}) { | ||
console.log('[git] continue to merge after resolving merge conflicts', await this.getCurrentBranch()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this log need to be deleted?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do need this log.
4e49ff7
to
ff49aac
Compare
Changes:
pulling from remote branch
.