Skip to content

Commit 15ab08a

Browse files
committed
import_srpm: don't attempt to fetch if we're not push/pulling
When we used `create_rpm_git_repo.py --local`, there may be no remote to pull from yet. Should indeed have been part of c2d89af. Signed-off-by: Yann Dirson <yann.dirson@vates.tech>
1 parent 04f862c commit 15ab08a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/import_srpm.py

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

5555
print(" checking out parent ref...")
5656

57-
call_process(['git', 'fetch'])
57+
if args.push:
58+
call_process(['git', 'fetch'])
5859
call_process(['git', 'checkout', args.parent_branch])
5960
if args.push:
6061
call_process(['git', 'pull'])

0 commit comments

Comments
 (0)