
def getrepos():
    '''
    @description: Tries to find various source code repositories and management tools. Git, SVN.
    @author: ohdae [bindshell@live.com]
    @short: search for source code repos
    '''
    log_msg("\n\n [ GetRepos Module Executed ]")
    log_msg("\n Start Time: %s" % logtime)

    maketemp("repos")
    repodir = (Temp_Dir+"/repos")
    os.chdir(repodir)

    users()

    if whereis('git') is not None:
        os.system("find %s -name *.git > UserRepos.txt" % Home_Dir)
        for user in userlist:
            if os.path.exists("/home/%s" % user) and os.access("/home/%s" % user, os.R_OK):
                os.system("find /home/%s -name *.git > %sRepos.txt" % (user, user))
                if os.path.exists("/home/%s/.gitconfig" % user):
                    proc = Popen('cat /home/%s/.gitconfig' % user,
                                                       shell=True,
                                                      stdout=PIPE,
                                                      )
                    config = proc.communicate()[0]
                    writenew("GitConfigs.txt", config) 

        if currentuser == "root":
            if os.path.exists("%s/.gitconfig" % Home_Dir):
                proc = Popen("cat %s/.gitconfig" % Home_Dir,
                                                 shell=True,                    
                                                stdout=PIPE,
                                                )
                rootconf = proc.communicate()[0]
                writenew("GitConfigs.txt", rootconf)

    if whereis('svn') is not None:
        for user in userlist:
            if os.path.exists("/home/%s" % user) is True:
                os.system("/usr/bin/find /home/%s -name *.svn > SvnRepos.txt" % user)
