Skip to content

Commit

Permalink
Update git diff command (#254)
Browse files Browse the repository at this point in the history
It now compares the last tag to the current changes instead of the other way round. It also is updated to use `--name-status`, which will give us more insights on what happened to the file.
  • Loading branch information
raphkoebraam authored Jan 17, 2024
1 parent 41b3706 commit 0217428
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Fastlane/deployment_lanes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@
private_lane :is_changed_since_last_tag do
sh "git fetch --tags origin #{ENV['BITRISE_GIT_BRANCH']} --no-recurse-submodules"
last_tag = last_git_tag
changes = sh "git diff --name-only HEAD #{last_tag}"
changes = sh "git --no-pager diff --name-status #{last_tag} HEAD"
UI.message "Is local HEAD changed since last tag #{last_tag}: #{!changes.empty?}"
is_changed = !changes.empty?
end
Expand Down

0 comments on commit 0217428

Please sign in to comment.