Commit ecfc173
git.GitBranch: support checking out tags (#639)
* git.GitBranch: support checking out tags
Checking out a git repo is a last resort, so I always like to pin them to tags when I do have to have one on a host.
`git describe` is considered plumbing and thus format stable. This behavior was introduced in 2005, so there are no
real concerns that a host will be running an existing version of git that doesn't support the command or the `--all`
flag.
* Update git branch test to match git describe output.
Co-authored-by: Nick Barrett <[email protected]>1 parent 0e6c613 commit ecfc173
2 files changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
14 | 18 | | |
15 | 19 | | |
16 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
0 commit comments