Permalink
Browse files

git submodule scons build issue fix

If you add mongo to a parent project via "git submodule add", you need these fixes to build mongo.
  • Loading branch information...
1 parent a1382fd commit 209bf3b97a416cb74352a8e3fe6e60fc65a10bf3 @gjmurakami-10gen committed Aug 3, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 buildscripts/utils.py
@@ -30,7 +30,7 @@ def getAllSourceFiles( arr=None , prefix="." ):
def getGitBranch():
- if not os.path.exists( ".git" ):
+ if not os.path.exists( ".git" ) or not os.path.isdir(".git"):
return None
version = open( ".git/HEAD" ,'r' ).read().strip()
@@ -57,7 +57,7 @@ def getGitBranchString( prefix="" , postfix="" ):
return prefix + b + postfix
def getGitVersion():
- if not os.path.exists( ".git" ):
+ if not os.path.exists( ".git" ) or not os.path.isdir(".git"):
return "nogitversion"
version = open( ".git/HEAD" ,'r' ).read().strip()

0 comments on commit 209bf3b

Please sign in to comment.