Index: tests/git_cl_test.py |
diff --git a/tests/git_cl_test.py b/tests/git_cl_test.py |
index f1cee8a2793c340ec45ccd13eaa1ab4f78483096..e4a412b79130df78a95dff617f7626b0107a73a6 100755 |
--- a/tests/git_cl_test.py |
+++ b/tests/git_cl_test.py |
@@ -17,6 +17,7 @@ from testing_support.auto_stub import TestCase |
import git_cl |
import git_common |
+import git_footers |
import subprocess2 |
class PresubmitMock(object): |
@@ -588,7 +589,7 @@ class TestGitCl(TestCase): |
'fake_ancestor_sha..HEAD'],), |
description) |
] |
- if git_cl.CHANGE_ID not in description: |
+ if not git_footers.get_footer_change_id(description) and not squash: |
calls += [ |
((['git', 'log', '--pretty=format:%s\n\n%b', |
'fake_ancestor_sha..HEAD'],), |