Ignore locale when checking for a clean repository
authorGuido Günther <agx@sigxcpu.org>
Sun, 15 Apr 2012 17:04:48 +0000 (19:04 +0200)
committerGuido Günther <agx@sigxcpu.org>
Sun, 15 Apr 2012 17:04:48 +0000 (19:04 +0200)
Closes: #668896

gbp/git/repository.py

index f342d46..3df91fc 100644 (file)
@@ -559,7 +559,7 @@ class GitRepository(object):
             return (True, '')
 
         clean_msg = 'nothing to commit'
-        out, ret = self._git_getoutput('status')
+        out, ret = self._git_getoutput('status', extra_env={'LC_ALL': 'C'})
         if ret:
             raise GbpError("Can't get repository status")
         ret = False