forked from RexOps/Rex
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request RexOps#1591 from RexOps/cd_into_git_test_repo
Fix changing directory into git test repository
- Loading branch information
Showing
2 changed files
with
5 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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; | ||
} | ||
|