diff --git a/git_cl.py b/git_cl.py index 7b25bd99a..068956415 100755 --- a/git_cl.py +++ b/git_cl.py @@ -1267,7 +1267,7 @@ class Changelist(object): if not os.path.isdir(url): logging.error( 'Remote "%s" for branch "%s" points to "%s", but it doesn\'t exist.', - remote, url, self.GetBranch()) + remote, self.GetBranch(), url) return None cache_path = url diff --git a/tests/git_cl_test.py b/tests/git_cl_test.py index 9c2bdefb8..ce67b884b 100755 --- a/tests/git_cl_test.py +++ b/tests/git_cl_test.py @@ -3158,8 +3158,8 @@ class TestGitCl(TestCase): (('os.path.isdir', '/cache/this-dir-doesnt-exist'), False), (('logging.error', - 'Remote "origin" for branch "/cache/this-dir-doesnt-exist" points to' - ' "master", but it doesn\'t exist.'), None), + 'Remote "origin" for branch "master" points to' + ' "/cache/this-dir-doesnt-exist", but it doesn\'t exist.'), None), ] cl = git_cl.Changelist(issue=1) self.assertIsNone(cl.GetRemoteUrl())