Skip to content
Browse files

Make sure that SHA-1s end with a newline.

  • Loading branch information...
1 parent d9f3496 commit cb4fc93ba381842fa0c2b34363d52475c4109852 @ebroder committed
Showing with 4 additions and 1 deletion.
  1. +4 −1 githubfs
View
5 githubfs
@@ -46,7 +46,10 @@ class GithubFS(routefs.RouteFS):
def get_branch(self, user, repo, branch, **kwargs):
project = '%s/%s' % (user, repo)
- return self.branch_cache.get(project, {}).get(branch, None)
+ sha1 = self.branch_cache.get(project, {}).get(branch, None)
+ if sha1:
+ sha1 += '\n'
+ return sha1
if __name__ == '__main__':

0 comments on commit cb4fc93

Please sign in to comment.
Something went wrong with that request. Please try again.