From f353c8a2ef53d33a0721869e65238935a319f029 Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Sat, 21 Jun 2008 18:05:30 +0200 Subject: nbb: Change to correct dir to find git top dir --- nbb/nbb_lib.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nbb/nbb_lib.in b/nbb/nbb_lib.in index 225e07e..60b7cba 100644 --- a/nbb/nbb_lib.in +++ b/nbb/nbb_lib.in @@ -376,7 +376,9 @@ class GitSourceTree(VCSourceTree): if "true" != prog_stdout(["git", "rev-parse", "--is-inside-work-tree"]): raise NotAVCSourceTree() - os.chdir(prog_stdout(["git", "rev-parse", "--show-cdup"])) + reldir = prog_stdout(["git", "rev-parse", "--show-cdup"]) + if reldir: + os.chdir(reldir) self.__tree_root = os.getcwd() def tree_root(self): -- cgit