Lines Matching full:repo
55 This class represents a git repo.
57 It is used to pull down a local copy of a git repo, check if the local
58 repo is up-to-date, if not update. It delegates the install to
66 @param repodir: destination repo directory.
67 @param giturl: main repo git url.
68 @param weburl: a web url for the main repo.
69 @param abs_work_tree: work tree of the git repo. In the
171 Clones a repo using giturl and repodir.
173 Since we're cloning the main repo we don't have a work tree yet,
181 @raises GitCloneError: if cloning the main repo fails.
183 logging.info('Cloning git repo %s', self.giturl)
210 logging.info('Updating git repo %s', self.giturl)
219 e_msg = 'Failed to pull git repo data'
225 Commit changes to repo with the supplied commit msg.
281 Reset repo to the given branch or git sha.
294 Reset repo to HEAD@{0} by running git reset --hard HEAD.
300 logging.info('Resetting head on repo %s', self.repodir)
314 logging.info('fetching from repo %s', self.giturl)
324 Does all it can to ensure that the repo is at remote_branch.
328 everything so that local repo reflects the upstream branch requested.
353 # Don't trust the existing repo setup at all (so don't trust the current
372 this method will leave an up-to-date version of git repo at
382 # exiting repo, check if we're up-to-date
385 logging.info('repo up-to-date')
433 Return whether the git repo was already initialized.
436 repo is empty. Assumes non-bare reposotories like the rest of this file.
438 @return: True if the repo is initialized.
450 Get the commit hash of the latest commit in the repo.
469 eg: we clone an empty main repo, then don't pull
472 @return True if the repo has no commits.
552 Return the current status of the git repo.