-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve behavior when no arguments are provided
Signed-off-by: Alex Goodman <[email protected]>
- Loading branch information
Showing
6 changed files
with
175 additions
and
20 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
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
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 |
---|---|---|
@@ -1,9 +1,12 @@ | ||
|
||
.PHONY: all | ||
all: repos/remote-repo repos/tagged-repo | ||
all: repos/remote-repo repos/tagged-repo repos/commit-in-repo | ||
|
||
repos/remote-repo: | ||
./create-remote-repo.sh | ||
|
||
repos/tagged-repo: | ||
./create-tagged-repo.sh | ||
./create-tagged-repo.sh | ||
|
||
repos/commit-in-repo: | ||
./create-commit-in-repo.sh |
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,21 @@ | ||
#!/usr/bin/env bash | ||
set -eux -o pipefail | ||
|
||
if [ -d "/path/to/dir" ] | ||
then | ||
echo "fixture already exists!" | ||
exit 0 | ||
else | ||
echo "creating fixture..." | ||
fi | ||
|
||
git init repos/commit-in-repo | ||
|
||
pushd repos/commit-in-repo | ||
|
||
git config --local user.email "[email protected]" | ||
git config --local user.name "nope" | ||
|
||
trap 'popd' EXIT | ||
|
||
git commit -m 'something' --allow-empty |