Skip to content

Commit 2357d01

Browse files
committed
Merge branch 'dev' of github.com:dxa4481/truffleHog
2 parents 314daf3 + 1760c0a commit 2357d01

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

truffleHog/truffleHog.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -249,14 +249,9 @@ def find_strings(git_url, since_commit=None, max_depth=1000000, printJson=False,
249249

250250
for remote_branch in repo.remotes.origin.fetch():
251251
since_commit_reached = False
252-
_, _, branch_name = remote_branch.name.partition('/')
253-
try:
254-
repo.git.checkout(remote_branch, b=branch_name)
255-
except:
256-
pass
257-
252+
branch_name = remote_branch.name
258253
prev_commit = None
259-
for curr_commit in repo.iter_commits(max_count=max_depth):
254+
for curr_commit in repo.iter_commits(branch_name, max_count=max_depth):
260255
commitHash = curr_commit.hexsha
261256
if commitHash == since_commit:
262257
since_commit_reached = True

0 commit comments

Comments
 (0)