internetwache / GitTools

A repository with 3 tools for pwn'ing websites with .git repositories available
MIT License
3.78k stars 612 forks source link

Fix the recursive bug when .git is in the root dir, and add git check… #44

Closed iNoSec2 closed 3 years ago

iNoSec2 commented 3 years ago

…out . at the end to have a cloned repo instead of having just a .git repo

gehaxelt commented 3 years ago

Hi, as this tool is only for downloading the repo, I don't think adding cd $BASEDIR && git checkout is useful here, since a checkout might fail due to missing files and the cd changes the current working directory, which might be unexpected.