vcs export --exact reports tag names instead of commit hash
See original GitHub issueVersion: vcs 0.2.4
How to Reproduce:
Run vcs export --exact
on a set of repos.
Expected behavior: The version field of each repo will report the exact commit hash like this:
src/ros2/rclpy:
type: git
url: https://github.com/ros2/rclpy.git
version: 76d26a125da7f9df19ba35beb60cb16838019a10
Actual Behavior: Frequently the hash is replaced by a tag name.
src/ros2/rcl_interfaces:
type: git
url: https://github.com/ros2/rcl_interfaces.git
version: 0.8.0
I think when the --exact parameter is specified, it is preferable to provide the commit hash.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Commits are snapshots, not diffs - The GitHub Blog
I'll be using the git/git repository checked out at v2.29.2 as an example. Follow along with my command-line examples for extra practice. Object ......
Read more >Artifactory: How to download a git version specified by the ...
How can I download a repo version specified by its hash? I can easily download the head of a branch by using Artifactory's...
Read more >Embedding Git Commit Information in Go Binaries - Icinga
This blog post shows different techniques that can be used to embed a Git commit hash into programs written in the Go programming...
Read more >Advanced Git Log | Atlassian Git Tutorial
Branches, tags, HEAD , and the commit history are almost all of the information contained in your Git repository, so this gives you...
Read more >git-describe - man pages section 1: User Commands
Git Manual GIT-DESCRIBE(1) NAME git-describe - Show the most recent tag that is ... --tags Instead of using only the annotated tags, use...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah. I can take a stab at it. Probably next week.
I haven’t looked at the codebase much yet, so I’m not sure if this makes sense.
But rather than changing all the backends, I could have the command line parser split the
--exact-with-tags
convenience option into two separate options on the command object: the existing.exact
and a.with_tags
. All the other backends would ignore thewith_tags
flag and maintain the same behavior.Resolved by #115.