summaryrefslogtreecommitdiff
path: root/bash-completion
diff options
context:
space:
mode:
authorChristoph Muellner <cmuellner@linux.com>2021-05-06 00:21:33 (GMT)
committerChristoph Muellner <cmuellner@linux.com>2021-05-06 00:21:33 (GMT)
commit1dc25bf61143f4c70b09ac651cc6848737b9a631 (patch)
treeab01baaff5cfb519f2c9fae4e41c2d2da7224e8a /bash-completion
parent0528a9d744cc95aac3df40d5a1666f0a1051cf5d (diff)
scripts/functions: Add better support for annotanted git tags
Annotated git tags are git objects with their own ID. They contain the commit ID where they point to. When downloading from annotated tags, we currently get the following warning: "Revision being fetched changed to ${new_unique_id};" The old unique_id is the ID of the annotated tag and the new unique_id is the commit it points to. Let's resolve this by first assuming to have an annotated tag and let git ls-remote dereference it. If that fails (e.g. if it can't be dereferenced because it is not an annotated tag), then let's proceed as before and don't do any dereferencing. Signed-off-by: Christoph Muellner <cmuellner@linux.com>
Diffstat (limited to 'bash-completion')
0 files changed, 0 insertions, 0 deletions