Skip to content

Commit

Permalink
changed file name to relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
teamon committed Jan 20, 2009
1 parent dca2243 commit 05a926c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Support/lib/gist.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def process_selection
gistname = "snippet" << "." << get_extension
else
selection = STDIN.read
gistname = ENV['TM_FILEPATH'] ? ENV['TM_FILEPATH'].split('/')[-1] : "file" << "." << get_extension
gistname = ENV['TM_FILEPATH'] ? ENV['TM_FILEPATH'].sub(ENV['TM_PROJECT_DIRECTORY'], '') : "file" << "." << get_extension
end

add_file(gistname, selection)
Expand Down

0 comments on commit 05a926c

Please sign in to comment.