summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2020-08-28 21:54:40 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2020-08-28 21:54:40 (GMT)
commitf1028ba62b249b21712435b828e6e3ac99ae13e0 (patch)
tree741a64389fe06e19e235dedeb145a91c6a04f2eb
parentf2d6c89b8c463b1a0ed9dbe95e000c86a163b9ff (diff)
downloadeobuilder-f1028ba62b249b21712435b828e6e3ac99ae13e0.zip
eobuilder-f1028ba62b249b21712435b828e6e3ac99ae13e0.tar.gz
eobuilder-f1028ba62b249b21712435b828e6e3ac99ae13e0.tar.bz2
run git fetch before switching branch (#46196)
-rwxr-xr-xeobuilder-ctl1
1 files changed, 1 insertions, 0 deletions
diff --git a/eobuilder-ctl b/eobuilder-ctl
index 40ae7cb..12cfdf4 100755
--- a/eobuilder-ctl
+++ b/eobuilder-ctl
@@ -448,6 +448,7 @@ def setup_git_tree(project_reference, options):
existing_tree = True
branch_name = options.branch or get_git_branch_name(project_reference)
try:
+ subprocess.check_call(['git', 'fetch'], cwd=git_project_path)
subprocess.check_call(['git', 'checkout', '--quiet', branch_name],
cwd=git_project_path)
subprocess.check_call(['git', 'reset', '--hard', 'origin/%s' % branch_name],