chore: save HEAD when git-import-patches runs (#17824)
This commit is contained in:
parent
f901170a4f
commit
fdaa75354a
3 changed files with 41 additions and 8 deletions
|
@ -17,6 +17,12 @@ def main(argv):
|
|||
help="use 3-way merge to resolve conflicts")
|
||||
args = parser.parse_args(argv)
|
||||
|
||||
# save the upstream HEAD so we can refer to it when we later export patches
|
||||
git.update_ref(
|
||||
repo='.',
|
||||
ref='refs/patches/upstream-head',
|
||||
newvalue='HEAD'
|
||||
)
|
||||
git.am(
|
||||
repo='.',
|
||||
patch_data=patch_from_dir(args.patch_dir),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue