14 lines
No EOL
220 B
Bash
Executable file
14 lines
No EOL
220 B
Bash
Executable file
#!/bin/bash
|
|
|
|
git fetch
|
|
HEADHASH=$(git rev-parse HEAD)
|
|
UPSTREAMHASH=$(git rev-parse master@{upstream})
|
|
|
|
if [ "$HEADHASH" != "$UPSTREAMHASH" ]
|
|
then
|
|
echo "remote has changed"
|
|
exit 1
|
|
else
|
|
#echo "no change"
|
|
exit 0
|
|
fi |