diff --git a/spec/components/version_spec.rb b/spec/components/version_spec.rb index 6d519a22ae5..345cc251f69 100644 --- a/spec/components/version_spec.rb +++ b/spec/components/version_spec.rb @@ -106,7 +106,7 @@ describe Discourse::VERSION do # Simulate a remote upstream `cd #{path} && git remote add origin #{path}/.git && git fetch -q` - `cd #{path} && git branch -u origin/$(git branch --show-current)` + `cd #{path} && git branch -u origin/$(git rev-parse --abbrev-ref HEAD)` end path