Skip to content

Commit

Permalink
Ensure proper working directory for fixup⇥ snippet
Browse files Browse the repository at this point in the history
This is another command affected by the recent change of default working directory.
  • Loading branch information
sorbits committed Aug 24, 2013
1 parent b86c1cc commit 26638b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Commands/Fixup!.tmCommand
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def escape(choice)
choice.gsub(/[,|\\$]/, '\\\\\0')
end
choices = %x{ "${TM_GIT:-git}" log --pretty=tformat:'%s' -n15 }.split(/\n/)
choices = %x{ cd "$TM_PROJECT_DIRECTORY" && "${TM_GIT:-git}" log --pretty=tformat:'%s' -n15 }.split(/\n/)
choices.reject! { |choice| choice =~ /^(fixup|squash)\b/ }
choices.map! { |choice| escape choice }
Expand Down

0 comments on commit 26638b8

Please sign in to comment.