| Index: scm.py
|
| diff --git a/scm.py b/scm.py
|
| index 998f9fb2661cc4b2a932d8aa1c9bfdb51aed1198..eabaad119c02d1bdf308fa48744b353beeb1e619 100644
|
| --- a/scm.py
|
| +++ b/scm.py
|
| @@ -234,13 +234,11 @@ class GIT(object):
|
| return "%s-%s" % (GIT.GetBranch(cwd), short_sha)
|
|
|
| @staticmethod
|
| - def GetCheckoutRoot(cwd):
|
| - """Returns the top level directory of the current repository.
|
| -
|
| - The directory is returned as an absolute path.
|
| + def GetCheckoutRoot(path):
|
| + """Returns the top level directory of a git checkout as an absolute path.
|
| """
|
| - return os.path.abspath(GIT.Capture(['rev-parse', '--show-cdup'],
|
| - cwd).strip())
|
| + root = GIT.Capture(['rev-parse', '--show-cdup'], path).strip()
|
| + return os.path.abspath(os.path.join(path, root))
|
|
|
|
|
| class SVN(object):
|
|
|