Skip to content

Commit

Permalink
fix get_repo_name
Browse files Browse the repository at this point in the history
  • Loading branch information
joergen7 committed Apr 9, 2021
1 parent efb1189 commit 01f56dc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/gpull.erl
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,10 @@ when is_binary( Prefix ),
TrimmedEnd = string:trim( NoTrunk, trailing, "/" ),
Found = string:find( TrimmedEnd, "/", trailing ),
TrimmedFront = string:trim( Found, leading, "/" ),
binary_to_list( TrimmedFront ).
case is_binary( TrimmedFront ) of
true -> binary_to_list( TrimmedFront );
false -> TrimmedFront
end.



Expand Down

0 comments on commit 01f56dc

Please sign in to comment.