diff options
Diffstat (limited to 'morphlib/gitdir.py')
-rw-r--r-- | morphlib/gitdir.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/morphlib/gitdir.py b/morphlib/gitdir.py index a3e5b6fa..5a622539 100644 --- a/morphlib/gitdir.py +++ b/morphlib/gitdir.py @@ -118,8 +118,8 @@ class GitDirectory(object): def get_config(self, key): '''Return value for a git repository configuration variable.''' - value = self._runcmd(['git', 'config', key]) - return value.strip() + value = self._runcmd(['git', 'config', '-z', key]) + return value.rstrip('\0') def set_remote_fetch_url(self, remote_name, url): '''Set the fetch URL for a remote.''' |