aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorFrank Lichtenheld <flichtenheld@astaro.com>2009-05-07 15:41:28 +0200
committerJunio C Hamano <gitster@pobox.com>2009-05-09 08:25:55 -0700
commitfe53bbc9bebb853f97f0da3f63f7fca5774e3f95 (patch)
tree84940a99a2d800c82f76488b91594a6bdb6e774a /t
parentda159c7759418bb14af655968dfa7a98bdcb8661 (diff)
downloadgit-fe53bbc9bebb853f97f0da3f63f7fca5774e3f95.tar.gz
git-fe53bbc9bebb853f97f0da3f63f7fca5774e3f95.tar.xz
Git.pm: Always set Repository to absolute path if autodetecting
So far we only set it to absolute paths in some cases which lead to problems like wc_chdir not working. Signed-off-by: Frank Lichtenheld <flichtenheld@astaro.com> Acked-by: Petr Baudis <pasky@suse.cz> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-xt/t9700/test.pl10
1 files changed, 2 insertions, 8 deletions
diff --git a/t/t9700/test.pl b/t/t9700/test.pl
index d9b29eab2..6c70aec02 100755
--- a/t/t9700/test.pl
+++ b/t/t9700/test.pl
@@ -86,18 +86,12 @@ close TEMPFILE;
unlink $tmpfile;
# paths
-is($r->repo_path, "./.git", "repo_path");
+is($r->repo_path, $abs_repo_dir . "/.git", "repo_path");
is($r->wc_path, $abs_repo_dir . "/", "wc_path");
is($r->wc_subdir, "", "wc_subdir initial");
$r->wc_chdir("directory1");
is($r->wc_subdir, "directory1", "wc_subdir after wc_chdir");
-TODO: {
- local $TODO = "commands do not work after wc_chdir";
- # Failure output is active even in non-verbose mode and thus
- # annoying. Hence we skip these tests as long as they fail.
- todo_skip 'config after wc_chdir', 1;
- is($r->config("color.string"), "value", "config after wc_chdir");
-}
+is($r->config("test.string"), "value", "config after wc_chdir");
# Object generation in sub directory
chdir("directory2");