Index: setup.py =================================================================== diff -u -re0eadb4bf0d4db2d0c3a053a992f5c9cf5c165c4 -r68bb533f7f71736bed620866622f1efd3d10f66f --- setup.py (.../setup.py) (revision e0eadb4bf0d4db2d0c3a053a992f5c9cf5c165c4) +++ setup.py (.../setup.py) (revision 68bb533f7f71736bed620866622f1efd3d10f66f) @@ -19,31 +19,6 @@ VERSION = "1.0.0" -def get_branch(): - """ - Gets the current branch name in the current git repository - - @return: The current branch name, None if it can't be determined - """ - - try: - return subprocess.check_output("git rev-parse --abbrev-ref HEAD", shell=True).decode("utf-8").strip() - except subprocess.CalledProcessError: - return None - - -def get_last_commit(): - """ - Gets the latest commit in the current git repository - - @return: (str) the latest commit in the current git repository, None if it can't be determined - """ - try: - return subprocess.check_output("git rev-parse --short=7 HEAD", shell=True).decode("utf-8").strip() - except subprocess.CalledProcessError: - return None - - def check_if_git_repo(): """ Checks if we're in a git repo or not to know if we can get the git branch and commit