Skip to content

Commit

Permalink
Fix changing directory into git test repository
Browse files Browse the repository at this point in the history
  • Loading branch information
ferki committed May 28, 2023
1 parent 8a3eb50 commit 87ca942
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Revision history for Rex

[BUG FIXES]
- Fix skipping tests without git
- Fix changing directory into git test repository

[DOCUMENTATION]

Expand Down
8 changes: 4 additions & 4 deletions t/scm/git.t
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ subtest 'clone into existing directory', sub {
sub prepare_test_repo {
my $directory = shift;

i_run qq(git -C $directory init);
i_run 'git init', cwd => $directory;

i_run qq(git -C $directory config user.name Rex);
i_run qq(git -C $directory config user.email noreply\@rexify.org);
i_run 'git config user.name Rex', cwd => $directory;
i_run 'git config user.email [email protected]', cwd => $directory;

i_run qq(git -C $directory commit --allow-empty -m commit);
i_run 'git commit --allow-empty -m commit', cwd => $directory;

return;
}
Expand Down

0 comments on commit 87ca942

Please sign in to comment.