Skip to content

Commit

Permalink
Preserve any subsequent '/' after user/repo split (#1023)
Browse files Browse the repository at this point in the history
  • Loading branch information
troydemonbreun authored and Sebastian McKenzie committed Oct 15, 2016
1 parent 8ebc3c2 commit 965811c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/resolvers/exotics/hosted-git-resolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ export function explodeHostedGitFragment(fragment: string, reporter: Reporter):

const userParts = fragment.split('/');

if (userParts.length === 2) {
if (userParts.length >= 2) {
const user = userParts.shift();
const repoParts = userParts.shift().split('#');
const repoParts = userParts.join('/').split('#');

if (repoParts.length <= 2) {
return {
Expand Down

0 comments on commit 965811c

Please sign in to comment.