Skip to content

HomeRepo

This is a very basic script that will clone a repository to $HOME/dev/GROUP/REPO and then link the cloned results in your $PWD/GROUP_REPO. This is something that I created for the purposes of making repo cloning quick if you need to consistently grab repositories from a personal or company git repo.

Environment

In order to run this tool you need to have the BASE_GIT_URL environment variable set in your shell.

1
export BASE_GIT_URL=ssh://git@example.com/

Usage Information

1
2
Usage: /usr/bin/repo {PROJECT_NAME} {REPO_DIR}
Example: /usr/bin/repo python learning

Package Requirements

1
2
3
4
5
6
7
8
9
altgraph==0.15
future==0.16.0
gitdb2==2.0.3
GitPython==2.1.8
macholib==1.9
pefile==2017.11.5
progressbar33==2.4
PyInstaller==3.3.1
smmap2==2.0.3

Known Bugs and Limitations

These issues are not currently being tracked, however if you would like to contribute or create an issue to track the problems please create an issue here.

  • Limitation: Currently this only works if you are using a repository that has a 'group' in the clone URL as it requires two parameters to run the command. This can be fixed but it has to be fixed manually within the script for now.
  • Bug: If you attempt to clone a repository that does not exist it will throw an exception instead of generating an appropriate error.