Skip to content

Commit

Permalink
Fix pull-suggestions diff (#158)
Browse files Browse the repository at this point in the history
The diff was backwards

Signed-off-by: Phil Dibowitz <phil@ipom.com>
  • Loading branch information
jaymzh authored Apr 26, 2024
1 parent 74d043c commit 67a0190
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sugarjar/commands.rb
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ def pullsuggestions

src = "origin/#{current_branch}"
fetch('origin')
diff = git('diff', src).stdout
diff = git('diff', "..#{src}").stdout
return unless diff && !diff.empty?

puts "Will merge the following suggestions:\n\n#{diff}"
Expand Down

0 comments on commit 67a0190

Please sign in to comment.