-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git config in tests instead of papers, user.email bugfix
- Loading branch information
perrette
committed
Apr 28, 2023
1 parent
a7377a6
commit 5d776bf
Showing
2 changed files
with
5 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -338,9 +338,6 @@ def installcmd(parser, o, config): | |
os.makedirs(config.gitdir, exist_ok=True) | ||
config.gitcmd('init') | ||
|
||
# setup user name and user email if not set (otherwise commit will fail) | ||
config.gitcmd('config --list | grep user.name || git config --global user.name "Some One"') | ||
config.gitcmd('config --list | grep user.email || git config --global user.name "[email protected]"') | ||
|
||
if config.gitlfs: | ||
config.gitcmd('lfs track "files/"') | ||
|
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import subprocess as sp | ||
# setup user name and user email if not set (otherwise commit will fail) | ||
sp.check_call('git config --list | grep user.name || git config --global user.name "Papers Tests"', shell=True) | ||
sp.check_call('git config --list | grep user.email || git config --global user.email "[email protected]"', shell=True) | ||
del sp |