Skip to content

Commit

Permalink
Merge pull request #14 from tkmru/feature/private-repo
Browse files Browse the repository at this point in the history
Add support for private repository in case of using -repo option
  • Loading branch information
kootenpv authored Feb 27, 2020
2 parents adc10a9 + f612fff commit 9d0f9b2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gittyleaks/gittyleaks.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,11 @@ def clone(self):
git('clone', 'https://github.com/{}/{}.git'.format(self.user, self.repo))

except sh.ErrorReturnCode_128:
pass
try:
# for Private Repository
git('clone', 'git@github.com:{}/{}.git'.format(self.user, self.repo))
except sh.ErrorReturnCode_128:
pass

os.chdir(self.repo)

Expand Down

0 comments on commit 9d0f9b2

Please sign in to comment.