X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/fff9bce57321720677a897e3c811538eea6a9cb6..613a2f163a1c2185eb03f1d9e8504e8fd737a4a4:/stgit/commands/imprt.py diff --git a/stgit/commands/imprt.py b/stgit/commands/imprt.py index 1b7dce8..c8cf42b 100644 --- a/stgit/commands/imprt.py +++ b/stgit/commands/imprt.py @@ -85,6 +85,11 @@ def __strip_patch_name(name): return stripped +def __replace_slashes_with_dashes(name): + stripped = name.replace('/', '-') + + return stripped + def __parse_description(descr): """Parse the patch description and return the new description and author information (if any). @@ -299,6 +304,7 @@ def __import_series(filename, options): if options.strip: patch = __strip_patch_name(patch) + patch = __replace_slashes_with_dashes(patch); if options.ignore and patch in applied: print 'Ignoring already applied patch "%s"' % patch continue