update makerepo.sh

You can now create a symlink .git/local to a clone
of the NetworkManager repository, to speed up fetching
from upstream
This commit is contained in:
Thomas Haller 2014-01-31 18:04:08 +01:00
parent c9b963bc22
commit ad27ff38eb
1 changed files with 8 additions and 0 deletions

View File

@ -20,6 +20,14 @@ fedpkg prep || die "error while \`fedpkg prep\`"
pushd NetworkManager-0.9.9.0
git init .
# if you have a local clone of NetworkManager, symlink
# it as ../.git/local.
LOCAL_GIT="$(realpath ../.git/local/)"
if [[ -d "$LOCAL_GIT/" ]]; then
git remote add local "$LOCAL_GIT/"
git fetch local
git fetch local 'refs/remotes/origin/*:refs/remotes/origin/*'
fi
git remote add origin git://anongit.freedesktop.org/NetworkManager/NetworkManager
git commit --allow-empty -m '*** empty initial commit' # useful, to rebase the following commit
git add -f -A .