Lines Matching full:remote
96 # default to same remote path as local
177 @param remote_branch: Specify the remote branch to clone. None if to
235 def upload_cl(self, remote, remote_branch, local_ref='HEAD', draft=False, argument
240 @param remote: The git remote to upload the CL.
241 @param remote_branch: The remote branch to upload the CL.
250 return self.push(remote, local_ref, remote_refspec, dryrun=dryrun)
253 def push(self, remote, local_refspec, remote_refspec, dryrun=False): argument
257 @param remote: The git remote to push the CL.
259 @param remote_refspec: The remote ref to push to.
264 cmd = 'push %s %s:%s' % (remote, local_refspec, remote_refspec)
283 @param branch_or_sha: Name of a local or remote branch or git sha.
310 Fetches all files from the remote but doesn't reset head.
355 self.gitcmd('config remote.origin.url %s' % self.giturl,
404 Get the top commit hash of the current remote git branch.
406 @return: Top commit hash of remote git branch
408 cmd1 = 'remote show'
417 Return whether this branch is out of date with regards to remote branch.
495 def checkout(self, remote, local=None): argument
497 Check out the git commit id, branch, or tag given by remote.
501 @param remote: Remote commit hash
508 assert(isinstance(remote, six.string_types))
510 cmd = 'checkout -b %s %s' % (local, remote)
512 cmd = 'checkout %s' % (remote)
525 @param all: List both remote-tracking branches and local branches (True)
527 @param remote_tracking: Lists the remote-tracking branches.
585 def remote(self): member in GitRepo
587 Return repository git remote name.
589 gitlog = self.gitcmd('remote')
593 raise error.CmdError('Failed to run git remote.')