Skip to content
This repository was archived by the owner on Oct 21, 2022. It is now read-only.

Commit f58e1bf

Browse files
committed
planex-clone: Allow the list of pin files to be empty
Signed-off-by: Euan Harris <euan.harris@citrix.com>
1 parent 92f00cb commit f58e1bf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

planex/cmd/clone.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
from string import Template
66
import argparse
7+
import glob
78
import os
89
import subprocess
910

@@ -25,11 +26,11 @@ def parse_args_or_exit(argv=None):
2526
parser.add_argument(
2627
"-r", "--repos", metavar="DIR", default="repos",
2728
help='Local path to the repositories')
28-
parser.add_argument("pins", metavar="PINS", nargs="+", help="pin file")
29+
parser.add_argument("pins", metavar="PINS", nargs="*", help="pin file")
2930
return parser.parse_args(argv)
3031

3132

32-
CHECKOUT_TEMPLATE = Template("""checkout poll: true,
33+
CHECKOUT_TEMPLATE = Template("""check ut poll: true,
3334
scm:[$$class: 'GitSCM',
3435
branches: [[name: '$branch']],
3536
extensions: [[$$class: 'RelativeTargetDirectory',

0 commit comments

Comments
 (0)