mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
chore: save HEAD when git-import-patches runs (#17824)
This commit is contained in:
@@ -102,6 +102,12 @@ def get_head_commit(repo):
|
||||
return subprocess.check_output(args).strip()
|
||||
|
||||
|
||||
def update_ref(repo, ref, newvalue):
|
||||
args = ['git', '-C', repo, 'update-ref', ref, newvalue]
|
||||
|
||||
return subprocess.check_call(args)
|
||||
|
||||
|
||||
def reset(repo):
|
||||
args = ['git', '-C', repo, 'reset']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user