Skip to content

Commit d2e95aa

Browse files
committed
Supports slashes into branch names
Branch names containing '/' are no more mangled.
1 parent 107d907 commit d2e95aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

truffleHog/truffleHog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def find_strings(git_url, since_commit=None, max_depth=None, printJson=False, do
217217

218218
for remote_branch in repo.remotes.origin.fetch():
219219
since_commit_reached = False
220-
branch_name = remote_branch.name.split('/')[1]
220+
_, _, branch_name = remote_branch.name.partition('/')
221221
try:
222222
repo.git.checkout(remote_branch, b=branch_name)
223223
except:

0 commit comments

Comments
 (0)