From f879d34548fe3181026d9e49bb24af1987db6892 Mon Sep 17 00:00:00 2001 From: James Murty Date: Sat, 24 May 2014 14:21:34 +0100 Subject: Moved requirement for init to `checkout` operation. Since `checkout` op is where the repo really needs to be init'ed for git-fat I moved the requirement to there. This way it is still triggered by a `pull` op, but only at the end after any files have been synced. --- git-fat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git-fat') diff --git a/git-fat b/git-fat index 7a9c00d..a2b4395 100755 --- a/git-fat +++ b/git-fat @@ -352,6 +352,7 @@ class GitFat(object): sys.exit(p.returncode) def checkout(self, show_orphans=False): 'Update any stale files in the present working tree' + self.assert_init_done() for digest, fname in self.orphan_files(): objpath = os.path.join(self.objdir, digest) if os.access(objpath, os.R_OK): @@ -370,7 +371,6 @@ class GitFat(object): def cmd_pull(self, args): 'Pull anything that I have referenced, but not stored' self.setup() - self.assert_init_done() refargs = dict() if '--all' in args: refargs['all'] = True -- cgit v1.2.1