Skip to content

Commit ef847de

Browse files
authored
Merge pull request #93 from slashdevsda/master
Supports slashes into branch names
2 parents 77ad941 + d2e95aa commit ef847de

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
@@ -245,7 +245,7 @@ def find_strings(git_url, since_commit=None, max_depth=1000000, printJson=False,
245245

246246
for remote_branch in repo.remotes.origin.fetch():
247247
since_commit_reached = False
248-
branch_name = remote_branch.name.split('/')[1]
248+
_, _, branch_name = remote_branch.name.partition('/')
249249
try:
250250
repo.git.checkout(remote_branch, b=branch_name)
251251
except:

0 commit comments

Comments
 (0)