-
Notifications
You must be signed in to change notification settings - Fork 10
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 #151 from larsewi/gitconfig
Fixed bug where git options where ignored
- Loading branch information
Showing
3 changed files
with
55 additions
and
11 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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
set -e | ||
set -x | ||
cd tests/ | ||
mkdir -p ./tmp/ | ||
cd ./tmp/ | ||
rm -rf cfbs.json .git | ||
|
||
# Check that the options '--git-user-name' and '--git-user-email' is not | ||
# ignored by the 'set-input' command. | ||
|
||
cfbs --non-interactive init | ||
cfbs --non-interactive add delete-files@0.0.1 | ||
|
||
cat <<EOF | cfbs --git-user-name=foo --git-user-email=bar@baz set-input delete-files - | ||
[ | ||
{ | ||
"type": "list", | ||
"variable": "files", | ||
"namespace": "delete_files", | ||
"bundle": "delete_files", | ||
"label": "Files", | ||
"subtype": [ | ||
{ | ||
"key": "path", | ||
"type": "string", | ||
"label": "Path", | ||
"question": "Path to file" | ||
}, | ||
{ | ||
"key": "why", | ||
"type": "string", | ||
"label": "Why", | ||
"question": "Why should this file be deleted?", | ||
"default": "Unknown" | ||
} | ||
], | ||
"while": "Specify another file you want deleted on your hosts?", | ||
"response": [{"path": "/tmp/bogus", "why": "Because I say so"}] | ||
} | ||
] | ||
EOF | ||
|
||
git log -n1 | grep "Author: foo <bar@baz>" |
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