diff options
author | Sverker Eriksson <[email protected]> | 2018-06-28 20:36:56 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2018-06-29 16:18:50 +0200 |
commit | d876b9a69fda446bf9d810cca82629ccbd17bf5f (patch) | |
tree | 69e0a0ab74aa219f1d8aad217744f9fb47f88a0b /scripts | |
parent | 8c565d429c1f5e95221b1d805c0ae2e19dd9e02e (diff) | |
download | otp-d876b9a69fda446bf9d810cca82629ccbd17bf5f.tar.gz otp-d876b9a69fda446bf9d810cca82629ccbd17bf5f.tar.bz2 otp-d876b9a69fda446bf9d810cca82629ccbd17bf5f.zip |
pre-push: Add comment of how to do dry-run testing
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/pre-push | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/pre-push b/scripts/pre-push index 5d4e280d25..71e9fd1e75 100755 --- a/scripts/pre-push +++ b/scripts/pre-push @@ -33,6 +33,19 @@ MASTER_ONLY=aea2a053e28a11497796879715be29ab0c3cd1a0 NCOMMITS_MAX=100 NFILES_MAX=100 + +# Example testing this script for "git push upstream OTP-20.3.8.2": +# +#> null=0000000000000000000000000000000000000000 +#> echo "refs/tags/OTP-20.3.8.2 dummysha refs/tags/OTP-20.3.8.2 $null" | scripts/pre-push upstream https://github.com/erlang/otp.git + +# Example to test "git push upstream master" +# +#> local_sha=`git rev-parse master` +#> remote_sha=`git rev-parse upstream/master` +#> echo "refs/heads/master $local_sha refs/heads/master $remote_sha" | scripts/pre-push upstream https://github.com/erlang/otp.git + + remote="$1" url="$2" |