Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
2b04a66d
Commit
2b04a66d
authored
Nov 22, 2017
by
Jeff Grafton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename tree state from 'git archive' to 'archive'
parent
f8ffbd9d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
version.sh
hack/lib/version.sh
+2
-1
No files found.
hack/lib/version.sh
View file @
2b04a66d
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
# source code.
# source code.
# KUBE_GIT_TREE_STATE - "clean" indicates no changes since the git commit id
# KUBE_GIT_TREE_STATE - "clean" indicates no changes since the git commit id
# "dirty" indicates source code changes after the git commit id
# "dirty" indicates source code changes after the git commit id
# "archive" indicates the tree was produced by 'git archive'
# KUBE_GIT_VERSION - "vX.Y" used to indicate the last release version.
# KUBE_GIT_VERSION - "vX.Y" used to indicate the last release version.
# KUBE_GIT_MAJOR - The major part of the version
# KUBE_GIT_MAJOR - The major part of the version
# KUBE_GIT_MINOR - The minor component of the version
# KUBE_GIT_MINOR - The minor component of the version
...
@@ -40,7 +41,7 @@ kube::version::get_version_vars() {
...
@@ -40,7 +41,7 @@ kube::version::get_version_vars() {
# we likely don't have a git tree, but these magic values may be filled in.
# we likely don't have a git tree, but these magic values may be filled in.
if
[[
'$Format:%%$'
==
"%"
]]
;
then
if
[[
'$Format:%%$'
==
"%"
]]
;
then
KUBE_GIT_COMMIT
=
'$Format:%H$'
KUBE_GIT_COMMIT
=
'$Format:%H$'
KUBE_GIT_TREE_STATE
=
"
git
archive"
KUBE_GIT_TREE_STATE
=
"archive"
# When a 'git archive' is exported, the '$Format:%D$' below will look
# When a 'git archive' is exported, the '$Format:%D$' below will look
# something like 'HEAD -> release-1.8, tag: v1.8.3' where then 'tag: '
# something like 'HEAD -> release-1.8, tag: v1.8.3' where then 'tag: '
# can be extracted from it.
# can be extracted from it.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment