Commits

lakin.wecker committed 5f95183

fixing git's stupidity for not having an easy way to specify the root repository directory when issuing commands. GRRRRRR

Comments (0)

Files changed (1)

baste/__init__.py

 
     #---------------------------------------------------------------------------
     def status_command(self):
-        return "git --git-dir=%s/.git status" % (self.name)
+        return "cd %s && git status && cd .." % (self.name)
 
     #---------------------------------------------------------------------------
     def diff_command(self):
-        return "git --git-dir=%s/.git diff" % (self.name)
+        return "cd %s && git diff && cd .." % (self.name)
 
 #-------------------------------------------------------------------------------
 def python_dependency(package, python_version, dir=None):