##// END OF EJS Templates
Make detecting bare Git repositories more robust...
Stefan Engel -
r2872:17556a81 beta
parent child Browse files
Show More
@@ -328,8 +328,8 b' def handle_git_receive(repo_path, revs, '
328
328
329 baseui = make_ui('db')
329 baseui = make_ui('db')
330 # fix if it's not a bare repo
330 # fix if it's not a bare repo
331 if repo_path.endswith('.git'):
331 if repo_path.endswith(os.sep + '.git'):
332 repo_path = repo_path[:-4]
332 repo_path = repo_path[:-5]
333
333
334 repo = Repository.get_by_full_path(repo_path)
334 repo = Repository.get_by_full_path(repo_path)
335 if not repo:
335 if not repo:
General Comments 0
You need to be logged in to leave comments. Login now