wine-build: fetch pull requests from repo if can't find commit
follow-up 25089aa9c2
This commit is contained in:
@@ -27,6 +27,13 @@ git clone https://github.com/spesmilo/electrum -b master
|
|||||||
|
|
||||||
pushd electrum
|
pushd electrum
|
||||||
if [ ! -z "$1" ]; then
|
if [ ! -z "$1" ]; then
|
||||||
|
# a commit/tag/branch was specified
|
||||||
|
if ! git cat-file -e "$1" 2> /dev/null
|
||||||
|
then # can't find target
|
||||||
|
# try pull requests
|
||||||
|
git config --local --add remote.origin.fetch '+refs/pull/*/head:refs/remotes/origin/pr/*'
|
||||||
|
git fetch --all
|
||||||
|
fi
|
||||||
git checkout $1
|
git checkout $1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user