Index: tools/push-to-trunk/auto_push.py |
diff --git a/tools/push-to-trunk/auto_push.py b/tools/push-to-trunk/auto_push.py |
index 68fba55d59bae0b06cb5f7afc3f815f698a66bbc..34afa4aaf8a66bf64e0cb4002df42bb8eb65163d 100755 |
--- a/tools/push-to-trunk/auto_push.py |
+++ b/tools/push-to-trunk/auto_push.py |
@@ -75,7 +75,7 @@ class FetchCandidate(Step): |
def RunStep(self): |
self.Git("fetch origin +refs/heads/candidate:refs/heads/candidate") |
- self["candidate"] = self.Git("show-ref -s refs/heads/candidate") |
+ self["candidate"] = self.Git("show-ref -s refs/heads/candidate").strip() |
class CheckLastPush(Step): |