Page MenuHomeSoftware Heritage

pull-from-upstream
No OneTemporary

pull-from-upstream

#!/bin/bash
set -e
if [ -d .git/refs/remotes/upstream ]; then
git fetch upstream --tags
oldbranch=$(git rev-parse --abbrev-ref HEAD)
if [ "$oldbranch" != "master" ]; then
git checkout master
fi
git merge upstream/master
git push origin master:master --tags
if [ "$oldbranch" != "master" ]; then
git checkout $oldbranch
fi
fi

File Metadata

Mime Type
text/x-shellscript
Expires
Sat, Jun 21, 8:32 PM (3 w, 6 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3361768

Event Timeline