projects
/
mass-build.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
0398b46
)
don't hard-code the path to the python interpreter
master
author
Ralf Jung
<post@ralfj.de>
Thu, 18 Jun 2015 11:12:17 +0000
(13:12 +0200)
committer
Ralf Jung
<post@ralfj.de>
Thu, 18 Jun 2015 11:12:17 +0000
(13:12 +0200)
mass_build.py
patch
|
blob
|
history
vcs.py
patch
|
blob
|
history
diff --git
a/mass_build.py
b/mass_build.py
index 553282b8076c2ae904b1f2d9b21b6928376a184d..5b7a9dc0e27f58636c694408622b6d0cf54d4bea 100755
(executable)
--- a/
mass_build.py
+++ b/
mass_build.py
@@
-1,4
+1,4
@@
-#!/usr/bin/python3
+#!/usr/bin/
env
python3
# mass-build - Easily Build Software Involving a Large Amount of Source Repositories
# Copyright (C) 2012-2013 Ralf Jung <post@ralfj.de>
#
# mass-build - Easily Build Software Involving a Large Amount of Source Repositories
# Copyright (C) 2012-2013 Ralf Jung <post@ralfj.de>
#
diff --git
a/vcs.py
b/vcs.py
index 9f53fe257ab586bca5ca5a96eed226057c4f848f..3fcca6d6d1975decf40baaf7f8e2fac57fa0d8a5 100644
(file)
--- a/
vcs.py
+++ b/
vcs.py
@@
-86,6
+86,7
@@
class Git:
print()
def version(self):
print()
def version(self):
+ os.chdir(self.folder)
v = git.describe()
return v[len(get_non_digit_prefix(v)):] # remove the non-digit prefix from v (so that it starts with a number)
v = git.describe()
return v[len(get_non_digit_prefix(v)):] # remove the non-digit prefix from v (so that it starts with a number)