# HG changeset patch # User Marcin Kuzminski # Date 2013-05-12 00:26:47 # Node ID 0a023c38135094f95587142d2ed3e3b4fbf942ec # Parent ec64c396da8c9597bcfc5ac053e42b5c84f8c720 gist cli should convert given paths to basenames diff --git a/rhodecode/bin/rhodecode_gist.py b/rhodecode/bin/rhodecode_gist.py --- a/rhodecode/bin/rhodecode_gist.py +++ b/rhodecode/bin/rhodecode_gist.py @@ -119,7 +119,7 @@ def _run(argv): if gist_content and '\0' in gist_content: raise Exception('Error: binary files upload is not possible') - filename = args.filename or filename + filename = os.path.basename(args.filename or filename) if gist_content: files = { filename: {