소스 검색

Don't force : on us

John Carr 16 년 전
부모
커밋
f0789c898a
1개의 변경된 파일0개의 추가작업 그리고 12개의 파일을 삭제
  1. 0 12
      bin/dulwich

+ 0 - 12
bin/dulwich

@@ -34,13 +34,7 @@ def cmd_fetch_pack(args):
 	from dulwich.repo import Repo
 	opts, args = getopt(args, "", ["all"])
 	opts = dict(opts)
-	if not ":" in args[0]:
-		print "Usage: dulwich fetch-pack [--all] host:path [REF...]"
-		sys.exit(1)
         client, path = get_transport_and_path(args.pop(0))
-        if not client:
-            print "Must be git:// or git+ssh://"
-            sys.exit(1)
 	if "--all" in opts:
 		determine_wants = lambda x: [y for y in x.values() if not y in r.object_store]
 	else:
@@ -159,13 +153,7 @@ def cmd_clone(args):
 		print "usage: dulwich clone host:path [PATH]"
 		sys.exit(1)
 
-	if not ":" in args[0]:
-		print "Usage: dulwich clone host:path [PATH]"
-		sys.exit(1)
         client, host_path = get_transport_and_path(args.pop(0))
-        if not client:
-            print "Must be git:// or git+ssh://"
-            sys.exit(1)
 
 	if len(args) > 0:
 		path = args.pop(0)