This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,16 @@
|
|||
# Git related helper scripts
|
||||
|
||||
# This function overrides 'git' so that it is used correctly in tests. It has
|
||||
# the following properties:
|
||||
#
|
||||
# - When we initialise a repository, we always want to set a git user manually.
|
||||
#
|
||||
git() {
|
||||
if [ "$1" = "init" ]; then
|
||||
command git "$@"
|
||||
command git config user.name "Test Name"
|
||||
command git config user.email "test@example.com"
|
||||
else
|
||||
command git "$@"
|
||||
fi
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue