From 140a4ef96f0acd5171bd6a38240007df32e104e3 Mon Sep 17 00:00:00 2001 From: Denis Ah-Kang Date: Fri, 21 Mar 2014 08:55:21 +0400 Subject: [PATCH] updating master using 'git checkout -f origin/master' will lead to a detached head because the hook creates a submissions directory into base_path. use 'git pull' instead --- sync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sync.py b/sync.py index 7e35ab7..0923179 100644 --- a/sync.py +++ b/sync.py @@ -31,7 +31,7 @@ def create(cls, path, remote): def update(self): git("fetch", "origin", cwd=self.path) - git("checkout", "-f", "origin/master", cwd=self.path) + git("pull", "--quiet", cwd=self.path) git("submodule", "update", "--recursive", cwd=self.path) class PullRequestCheckout(object):