Skip to content
Browse files

Ensure proper working directory for fixup⇥ snippet

This is another command affected by the recent change of default working directory.
  • Loading branch information...
1 parent b86c1cc commit 26638b8c6d1ab99f117ec721709c100cb4b259ed @sorbits sorbits committed Aug 24, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 Commands/Fixup!.tmCommand
View
2 Commands/Fixup!.tmCommand
@@ -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 }

0 comments on commit 26638b8

Please sign in to comment.
Something went wrong with that request. Please try again.