mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 04:07:55 +08:00
DEV: Fix a spec incompatibility with pre-2.28 git (#10892)
Regression introduced in 6932a373a34a7150f8514af7edaf9048cc719a7d
This commit is contained in:
@ -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/main`
|
||||
`cd #{path} && git branch -u origin/$(git branch --show-current)`
|
||||
end
|
||||
|
||||
path
|
||||
|
Reference in New Issue
Block a user