-
Notifications
You must be signed in to change notification settings - Fork 96
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
newt: Add external repos patches support #550
Conversation
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.
Tested OK.
Check fails because code tries to commit (apply patches) without settings git user.name user.email
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 think we should use GIT_COMMITTER_NAME and GIT_COMMITTER_EMAIL to avoid requiring git configuration by user. Also this would allow us to have 'newt' as committer ie:
GIT_COMMITTER_NAME=newt
GIT_COMMITTER_EMAIL=dev@mynewt.apache.org
} | ||
cmd = append(cmd, patches...) | ||
|
||
_, err := executeGitCommand(repoDir, cmd, true) |
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.
hmm should we even try to execute 'git am' if no patches were provided?
When patch fails affected git repository stays in state that |
Now if package that adds external repository contains directory patches/*external_repo_name*, newt will try to apply patches inside this directory to the external repo.
@kasjer Fix applied |
Verified to work |
Now if package that adds external repository contains directory patches/external_repo_name, newt will try to apply patches inside this directory to the external repo.