Skip to content

Commit c8a6eb8

Browse files
authored
Merge pull request #678 from xcp-ng/importsrpm-local
import_srpm: do not pull if we do not push
2 parents 5aefccf + c2d89af commit c8a6eb8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: scripts/import_srpm.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ def main():
4242

4343
subprocess.check_call(['git', 'fetch'])
4444
subprocess.check_call(['git', 'checkout', args.parent_branch])
45-
subprocess.check_call(['git', 'pull'])
45+
if args.push:
46+
subprocess.check_call(['git', 'pull'])
4647

4748
print(" removing everything from SOURCES and SPECS...")
4849

0 commit comments

Comments
 (0)