Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dobriq committed Feb 14, 2021
1 parent 1325696 commit 67409e7
Show file tree
Hide file tree
Showing 13 changed files with 10 additions and 6 deletions.
Empty file modified LICENSE
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
6 changes: 4 additions & 2 deletions build/lib/gitacc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ def acc():

print('正在使用git加速器clone')
target_path = os.getcwd()

if len(sys.argv)!=3:
print('参数错误,请使用gitacc clone')
cmd=sys.argv[1]
if len(sys.argv)==3 and cmd=='clone':
cmd=sys.argv[1]

# print(cmd)
repo=sys.argv[2]
repoacc=repo.replace('github.com','github.com.cnpmjs.org')
Expand Down
Binary file removed dist/gitacc-0.1-py2.py3-none-any.whl
Binary file not shown.
Binary file removed dist/gitacc-0.1-py3.6.egg
Binary file not shown.
Binary file added dist/gitacc-0.2-py2.py3-none-any.whl
Binary file not shown.
2 changes: 1 addition & 1 deletion gitacc.egg-info/PKG-INFO
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 1.0
Name: gitacc
Version: 0.1
Version: 0.2
Summary: UNKNOWN
Home-page: UNKNOWN
Author: UNKNOWN
Expand Down
Empty file modified gitacc.egg-info/SOURCES.txt
100644 → 100755
Empty file.
Empty file modified gitacc.egg-info/dependency_links.txt
100644 → 100755
Empty file.
Empty file modified gitacc.egg-info/entry_points.txt
100644 → 100755
Empty file.
Empty file modified gitacc.egg-info/top_level.txt
100644 → 100755
Empty file.
6 changes: 4 additions & 2 deletions gitacc/__init__.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ def acc():

print('正在使用git加速器clone')
target_path = os.getcwd()

if len(sys.argv)!=3:
print('参数错误,请使用gitacc clone')
cmd=sys.argv[1]
if len(sys.argv)==3 and cmd=='clone':
cmd=sys.argv[1]

# print(cmd)
repo=sys.argv[2]
repoacc=repo.replace('github.com','github.com.cnpmjs.org')
Expand Down
2 changes: 1 addition & 1 deletion setup.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import find_packages,setup
setup(
name = 'gitacc',
version = '0.1',
version = '0.2',
packages = find_packages(),
entry_points={
'console_scripts':[
Expand Down

0 comments on commit 67409e7

Please sign in to comment.