From a2a51929a848ffa6db92ec7218994461ecccb50a Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 19 May 2010 07:17:36 -0400 Subject: Fixed Eric Kow's _darcs/prefs/author bug. --- libbe/storage/vcs/darcs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libbe/storage') diff --git a/libbe/storage/vcs/darcs.py b/libbe/storage/vcs/darcs.py index b92977a..0f23278 100644 --- a/libbe/storage/vcs/darcs.py +++ b/libbe/storage/vcs/darcs.py @@ -120,7 +120,7 @@ class Darcs(base.VCS): for pref_file in ['author', 'email']: pref_path = os.path.join(darcs_dir, 'prefs', pref_file) if os.path.exists(pref_path): - return self._vcs_get_file_contents(pref_path) + return self._vcs_get_file_contents(pref_path).strip() for env_variable in ['DARCS_EMAIL', 'EMAIL']: if env_variable in os.environ: return os.environ[env_variable] -- cgit