[Pkg-ocaml-maint-commits] [dh-ocaml] 03/05: Use gbp-clone to clone git repos and track relevant branches
Mehdi Dogguy
mehdi at moszumanska.debian.org
Sun Jan 3 11:59:07 UTC 2016
This is an automated email from the git hooks/post-receive script.
mehdi pushed a commit to branch master
in repository dh-ocaml.
commit 53eba68c88c3526f8519186db9f36c4204bb8bbe
Author: Mehdi Dogguy <mehdi at debian.org>
Date: Sun Jan 3 11:49:47 2016 +0100
Use gbp-clone to clone git repos and track relevant branches
---
tools/dom-git-checkout | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/tools/dom-git-checkout b/tools/dom-git-checkout
index bbd6464..c45c06d 100755
--- a/tools/dom-git-checkout
+++ b/tools/dom-git-checkout
@@ -19,15 +19,6 @@ fi
REPODIR="git/pkg-ocaml-maint/packages/$PACKAGE.git"
echo "I: cloning remote repository"
-git clone "$PROTOCOL://git.debian.org/$REPODIR"
-
-echo "I: setting up remote tracking"
-(cd $PACKAGE
- for branch in $REMOTE_BRANCHES ; do
- if git show-ref -q remotes/origin/$branch; then
- git branch --track $branch remotes/origin/$branch
- fi
- done)
+gbp clone --pristine-tar "$PROTOCOL://git.debian.org/$REPODIR"
echo "I: all done, enjoy."
-
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ocaml-maint/packages/dh-ocaml.git
More information about the Pkg-ocaml-maint-commits
mailing list