diff --git a/git_cl.py b/git_cl.py index 662c28e79..85b212c7e 100755 --- a/git_cl.py +++ b/git_cl.py @@ -1262,7 +1262,7 @@ class Changelist(object): def GetUpstreamBranch(self): if self.upstream_branch is None: remote, upstream_branch = self.FetchUpstreamTuple(self.GetBranch()) - if remote is not '.': + if remote != '.': upstream_branch = upstream_branch.replace('refs/heads/', 'refs/remotes/%s/' % remote) upstream_branch = upstream_branch.replace('refs/branch-heads/',