Skip to content

Commit

Permalink
fix(sidecar): anon users clone repo at correct SHA (#1406)
Browse files Browse the repository at this point in the history
  • Loading branch information
olevski authored Feb 15, 2023
1 parent 556bfeb commit 63d734b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions git_services/git_services/init/cloner.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ def run(self, recover_autosave, session_branch, root_commit_sha, s3_mount):
self._initialize_repo()
if self.user.is_anonymous:
self._clone(session_branch)
self.cli.git_reset("--hard", root_commit_sha)
else:
with self._temp_plaintext_credentials():
self._clone(session_branch)
Expand Down

0 comments on commit 63d734b

Please sign in to comment.