Merge branch 'jk/git-pm-bare-repo-fix'
In Git 2.39, Git.pm stopped working in a bare repository, which has been corrected. * jk/git-pm-bare-repo-fix: Git.pm: use "rev-parse --absolute-git-dir" rather than perl code Git.pm: fix bare repository search with Directory option
This commit is contained in:
@ -147,6 +147,11 @@ close TEMPFILE3;
|
||||
unlink $tmpfile3;
|
||||
chdir($abs_repo_dir);
|
||||
|
||||
# open alternate bare repo
|
||||
my $r4 = Git->repository(Directory => "$abs_repo_dir/bare.git");
|
||||
is($r4->command_oneline(qw(log --format=%s)), "bare commit",
|
||||
"log of bare repo works");
|
||||
|
||||
# unquoting paths
|
||||
is(Git::unquote_path('abc'), 'abc', 'unquote unquoted path');
|
||||
is(Git::unquote_path('"abc def"'), 'abc def', 'unquote simple quoted path');
|
||||
|
Reference in New Issue
Block a user