diff options
author | Alex Richardson <Alexander.Richardson@cl.cam.ac.uk> | 2021-07-28 15:16:30 +0100 |
---|---|---|
committer | Alex Richardson <Alexander.Richardson@cl.cam.ac.uk> | 2021-09-27 15:41:24 +0100 |
commit | 1dad57d47614546240061fd942d1ff8e6e54eb64 (patch) | |
tree | 8d6cd6d8761817187ad6aa6190e606f84fd75d5a /modules/ECMAddQtDesignerPlugin.cmake | |
parent | 3df459ce8233f755c7eebc2b67f0ca6465ebd927 (diff) | |
download | extra-cmake-modules-1dad57d47614546240061fd942d1ff8e6e54eb64.tar.gz extra-cmake-modules-1dad57d47614546240061fd942d1ff8e6e54eb64.tar.bz2 |
Handle git remotes that aren't called origin in _repository_name()
I was seeing `error: No such remote 'origin'` in the cmake output.
This commit avoids hardcoding `origin` as the upstream URL and instead
uses the `git rev-parse @{u}` to get the configured upstream.
As a follow-up we may want to check if this should be executed by default,
but for now this fixes a warning that I'm seeing with various projects.
Diffstat (limited to 'modules/ECMAddQtDesignerPlugin.cmake')
0 files changed, 0 insertions, 0 deletions