bug fix for namespaced project forking

original code has bug when forking a namesapced repo like test/repo.git