-
Notifications
You must be signed in to change notification settings - Fork 2
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 #4 from rackspace-infrastructure-automation/jp/escrow
escrows applied git revision
- Loading branch information
Showing
7 changed files
with
37 additions
and
24 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 @@ | ||
/.cache/ |
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,6 +1,7 @@ | ||
*.tfstate | ||
*.tfstate.backup | ||
.terraform/ | ||
.cache/ | ||
.DS_Store | ||
.idea/* | ||
*.tfvars | ||
|
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,21 +1,10 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
# be sure branch is up to date | ||
git fetch origin | ||
MASTER_REF=$(git rev-parse remotes/origin/master) | ||
|
||
. $(dirname $(realpath $0))/variables.sh | ||
|
||
# in the last hundred commits, is one of the parents in the current master? | ||
set +e | ||
git log --pretty=format:'%H' -n 100 | grep -q "$MASTER_REF" | ||
UPTODATE=$? | ||
set -e | ||
|
||
if [ $UPTODATE -ne 0 ] | ||
then | ||
echo "Your branch is not up to date. Exiting." | ||
if ! (git log --pretty=format:'%H' -n 100 | grep -q "$(git rev-parse remotes/origin/master)"); then | ||
echo >&2 'Your branch is not up to date. Exiting.' | ||
exit 1 | ||
fi |
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