Lines Matching +full:upload +full:- +full:dir
50 repo is up-to-date, if not update. It delegates the install to
64 In such repos the -git-dir option should point to
65 the .git directory and -work-tree should point to
69 (.git) in the same directory. This class assumes non-bare
81 # path to .git dir
99 raise ValueError('Unsupported operation -- this object was not'
109 # base git command , pointing to gitpath git dir
110 gitcmdbase = '%s --git-dir=%s' % (self.git_base_cmd,
113 gitcmdbase += ' --work-tree=%s' % self.work_tree
178 cmd += '-b %s' % remote_branch
180 cmd += '--depth 1'
205 cmd += '--rebase '
221 rv = self.gitcmd('commit -a -m \'%s\'' % msg)
230 Upload the change.
232 @param remote: The git remote to upload the CL.
233 @param remote_branch: The remote branch to upload the CL.
234 @param local_ref: The local ref to upload.
235 @param draft: Whether to upload the CL as a draft.
236 @param dryrun: Whether the upload operation is a dryrun.
252 @param dryrun: Whether the upload operation is a dryrun.
279 self.gitcmd('reset --hard %s' % branch_or_sha,
286 Reset repo to HEAD@{0} by running git reset --hard HEAD.
293 rv = self.gitcmd('reset --hard HEAD')
307 rv = self.gitcmd('fetch --all')
328 # Re-stat all files before comparing index. This is needed for
329 # diff-index to work properly in cases when the stat info on files is
332 rv = self.gitcmd('update-index --refresh -q',
336 'diff-index --quiet HEAD --',
350 self.gitcmd('checkout -f',
353 self.gitcmd('clean -qxdf',
364 this method will leave an up-to-date version of git repo at
374 # exiting repo, check if we're up-to-date
377 logging.info('repo up-to-date')
389 cmd = 'log --pretty=format:"%H" -1'
402 cmd2 = 'log --pretty=format:"%H" -1 ' + origin_name_cmd.stdout.strip()
416 # local is out-of-date, pull
428 repo is empty. Assumes non-bare reposotories like the rest of this file.
432 cmd = 'count-objects'
450 cmd = 'rev-list -n 1 --all'
478 cmd = 'rev-parse --verify HEAD'
502 cmd = 'checkout -b %s %s' % (local, remote)
517 @param all: List both remote-tracking branches and local branches (True)
519 @param remote_tracking: Lists the remote-tracking branches.
524 cmd = 'branch --no-color'
526 cmd = " ".join([cmd, "-a"])
528 cmd = " ".join([cmd, "-r"])
546 @param short: Whether to give the output in the short-format.
551 cmd += ' -s'