Skip to content

Commit

Permalink
more refactoring of main
Browse files Browse the repository at this point in the history
  • Loading branch information
chidimo committed Dec 3, 2018
1 parent 6866bc2 commit 0549d61
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions build/lib/pygit/main.py
Expand Up @@ -7,7 +7,7 @@
import argparse
import logging

from pathlib import Path, PurePath
from pathlib import Path, PurePath, PureWindowsPath
from datetime import datetime
from subprocess import Popen, PIPE, STDOUT

Expand Down Expand Up @@ -183,12 +183,12 @@ def initialize():

if is_git_repo(directory_absolute_path):
if sys.platform == 'win32':
name = directory_absolute_path.split("\\")[-1]
name = PureWindowsPath(directory_absolute_path).parts[-1]
if sys.platform == 'linux':
name = directory_absolute_path.split("/")[-1]
name = PurePath(directory_absolute_path).parts[-1]

if args.verbosity:
print(directory_absolute_path, " is a git repository *** shelving\n")
pygit_logger.debug(directory_absolute_path, " is a git repository *** shelving\n")
name_shelf[name] = directory_absolute_path
index_shelf[str(i)] = name
i += 1
Expand All @@ -210,7 +210,7 @@ def initialize():
name_shelf[name] = directory
index_shelf[str(i)] = name
else:
print(directory, " is not a valid git repo.\nContinuing...\n")
pygit_logger.debug(directory, " is not a valid git repo.\nContinuing...\n")
continue
i += 1

Expand Down
Binary file removed dist/python-git-4.2.tar.gz
Binary file not shown.
Binary file added dist/python-git-4.3.tar.gz
Binary file not shown.
Binary file removed dist/python_git-4.2-py3-none-any.whl
Binary file not shown.
Binary file added dist/python_git-4.3-py3-none-any.whl
Binary file not shown.
2 changes: 1 addition & 1 deletion python_git.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: python-git
Version: 4.2
Version: 4.3
Summary: Automate boring git tasks
Home-page: https://github.com/chidimo/python-git
Author: Chidi Orji
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -16,7 +16,7 @@ def readme():


setup(name='python-git',
version='4.2',
version='4.3',
description='Automate boring git tasks',
long_description=readme(),
classifiers=[
Expand Down

0 comments on commit 0549d61

Please sign in to comment.