Skip to content

Commit 8f93842

Browse files
committed
add hint to solve git errors with a synced repo
1 parent 24e2dc2 commit 8f93842

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

nf_core/synced_repo.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,11 @@ def checkout(self, commit):
260260
log.debug(f"Overwriting local changes in '{self.local_repo_dir}'")
261261
self.repo.git.checkout(self.branch, force=True)
262262
else:
263+
log.error(
264+
f"Could not check out commit '{commit}' in '{self.remote_url}'.\n"
265+
"To solve this, you can try to remove the cloned rempository and run the command again."
266+
f"This repository is tipically found at `~/.config/nfcore/{self.local_repo_dir}`"
267+
)
263268
raise e
264269

265270
def component_exists(self, component_name, component_type, checkout=True, commit=None):

0 commit comments

Comments
 (0)