&dhemail;
&dhfirstname;
&dhsurname;
gbp-clone
&dhsection;
gbp-cloneClone a repository from remote
&gbp-clone;
&man.common.options.synopsis;
branch_namebranch_namedepthrepositoryCOMMANDrepositorydirectoryDESCRIPTION
&gbp-clone; clones a remote repository and sets up tracking branches for
the debian, upstream and
pristine-tar branches. This way you can easily update
later using &gbp-pull;.
OPTIONS
&man.common.options.description;
Track all branches, not only debian
and upstream.=branch_nameThe branch in the Git repository the Debian package is being
developed on, default is master.=branch_nameThe branch in the &git; repository the upstream sources are put
onto. Default is upstream.=depthGit history depth, for creating shallow git clones.=repositoryLocal repository to use as alternate instead of re-copying data from remote repository.Track pristine tar branch.
Enable running hooks.
COMMAND
Execute COMMAND after cloning the source
from the remote.
Exported environment variables are: GBP_GIT_DIR (the
repository the package is being built from).
Note that if you clone a repository that contains a
hook configuration in debian/gbp.conf
this hook will not be run automatically to prevent execution
of untrusted code.
When set to
use the DEBEMAIL environment variable to set the
user.email &git; configuration otherwise use &git;'s
defaults.
When set to
use the DEBUSER environment variable to set the
user.name &git; configuration otherwise use &git;'s
defaults.
repository
The (possibly remote) repository to clone from. This is
usually a &git; URL but some shortcuts are supported (see below).
directory
The directory to clone to.
EXAMPLES
Clone a repository and setup a tracking branch for pristine-tar
as well:
&gbp-clone; --pristine-tar git://honk.sigxcpu.org/git/git-buildpackage.git
Clone from the Git-Vcs URL of a package:
&gbp-clone; vcsgit:libvirt
Clone a repository from salsa (Debian's code hosting):
&gbp-clone; salsa:agx/git-buildpackage
Clone from a github repository:
&gbp-clone; github:agx/git-buildpackage
&man.gbp.config-files;
SEE ALSO,
,
AUTHOR&dhusername; &dhemail;