]> SALOME platform Git repositories - tools/pvdeliv.git/commitdiff
Salome HOME
fix version detection - 86d841ef
authorCédric Aguerre <cedric.aguerre@edf.fr>
Thu, 20 Oct 2016 13:45:11 +0000 (15:45 +0200)
committerCédric Aguerre <cedric.aguerre@edf.fr>
Thu, 20 Oct 2016 13:45:11 +0000 (15:45 +0200)
scripts/salome_compile.py

index d718ba12ed86048659ff81f54607c306053b512f..70d98bcfa5843a2ecf97eb2dac79fc897d7bc491 100644 (file)
@@ -20,7 +20,7 @@ def __getCurrentVersion(srcDir,pattern, config):
     return s
   elif isinstance(srcLoc,tuple):
     dirGitLoc=os.path.splitext(os.path.basename(srcLoc[0]))[0]
-    p=subprocess.Popen(["git","rev-parse","--verify","HEAD"],cwd=dirGitLoc)
+    p=subprocess.Popen(["git","rev-parse","--verify","HEAD"],cwd=dirGitLoc,stdout=subprocess.PIPE,stderr=subprocess.PIPE)
     p_out,p_err=p.communicate()
     if p.returncode != 0:
       msg = "Error in __getCurrentVersion\n" + p_err