chiark
/
gitweb
/
~ianmdlvl
/
fdroidserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
904b783
)
Fetch tags and commits separately for git, or it doesn't work properly
author
Ciaran Gultnieks
<ciaran@ciarang.com>
Wed, 25 Jan 2012 20:21:58 +0000
(20:21 +0000)
committer
Ciaran Gultnieks
<ciaran@ciarang.com>
Wed, 25 Jan 2012 20:21:58 +0000
(20:21 +0000)
common.py
patch
|
blob
|
history
diff --git
a/common.py
b/common.py
index d70ea6f9d4e5b69da10287a277739e9a1d8cb155..095e715ec741e3f45a1b2cdbcaa22b44d9094e80 100644
(file)
--- a/
common.py
+++ b/
common.py
@@
-99,6
+99,9
@@
class vcs_git(vcs):
raise VCSException("Git clean failed")
if not self.refreshed:
# Get latest commits and tags from remote...
+ if subprocess.call(['git', 'fetch', 'origin'],
+ cwd=self.local) != 0:
+ raise VCSException("Git fetch failed")
if subprocess.call(['git', 'fetch', '--tags', 'origin'],
cwd=self.local) != 0:
raise VCSException("Git fetch failed")