From 00d468f51b4222d5b027c4140713b5c4c1ea1a2a Mon Sep 17 00:00:00 2001 From: Catalin Marinas Date: Thu, 25 Jan 2007 22:28:38 +0000 Subject: [PATCH] Synchronise the current patch if none specified for 'sync' Signed-off-by: Catalin Marinas --- stgit/commands/sync.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stgit/commands/sync.py b/stgit/commands/sync.py index 594d7dea..db52bcdb 100644 --- a/stgit/commands/sync.py +++ b/stgit/commands/sync.py @@ -119,8 +119,10 @@ def func(parser, options, args): patches = applied elif len(args) != 0: patches = parse_patches(args, applied, ordered = True) + elif applied: + patches = [crt_series.get_current()] else: - parser.error('no patches specified') + parser.error('no patches applied') if not patches: raise CmdException, 'No patches to synchronise' -- 2.11.4.GIT