Fix an issue with hashes ending with a slash

This commit is contained in:
yflory
2017-04-28 15:47:31 +02:00
parent d9b5eb8a97
commit a51a35da70
2 changed files with 13 additions and 5 deletions

View File

@@ -270,5 +270,10 @@ Version 2
return '/blob/' + id.slice(0,2) + '/' + id;
};
var serializeHash = Hash.serializeHash = function (hash) {
if (hash && hash.slice(-1) !== "/") { hash += "/"; }
return hash;
};
return Hash;
});