Selaa lähdekoodia

app.py: add --tags to git fetch command

Shiv Tyagi 1 vuosi sitten
vanhempi
sitoutus
0dd4127dbf
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      app.py

+ 1 - 1
app.py

@@ -65,7 +65,7 @@ def find_hash_for_ref(remote_name, ref):
 
 def fetch_remote(remote_name):
     app.logger.info("Fetching remote %s" % remote_name)
-    run_git(['git', 'fetch', remote_name], sourcedir)
+    run_git(['git', 'fetch', remote_name, '--tags', '--force'], sourcedir)
 
 def get_git_hash(remote, commit_reference, fetch=False):
     if remote is None or commit_reference  is None: