Skip to content

Commit e632813

Browse files
authored
Merge pull request #6048 from readthedocs/fix-missing-comit
When called via SyncRepositoryTaskStep this doesn't exist
2 parents d161d20 + 0967ea1 commit e632813

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readthedocs/projects/tasks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def sync_repo(self):
147147
version_repo = self.get_vcs_repo()
148148
version_repo.update()
149149
self.sync_versions(version_repo)
150-
identifier = self.commit or self.version.identifier
150+
identifier = getattr(self, 'commit', None) or self.version.identifier
151151
version_repo.checkout(identifier)
152152

153153
def sync_versions(self, version_repo):

0 commit comments

Comments
 (0)