Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
deb-icinga2-templates
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
github-mirror
deb-icinga2-templates
Commits
13d93b88
Commit
13d93b88
authored
Feb 06, 2018
by
Markus Frosch
📣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get_snapshot: Fix rev-list for older git versions
parent
d7210081
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
get_snapshot
get_snapshot
+1
-1
No files found.
get_snapshot
View file @
13d93b88
...
...
@@ -58,7 +58,7 @@ fi
if
!
git_version
=
$(
git describe
--tags
"
${
UPSTREAM_GIT_BRANCH
}
"
)
;
then
# no tag yet, build arbitrary version
git_version
=
0.0.0.
$(
git rev-list
--count
"
${
UPSTREAM_GIT_BRANCH
}
"
)
.
$(
git rev-parse
--short
=
12
"
${
UPSTREAM_GIT_BRANCH
}
"
)
git_version
=
0.0.0.
$(
git rev-list
"
${
UPSTREAM_GIT_BRANCH
}
"
|
wc
-l
)
.
$(
git rev-parse
--short
=
12
"
${
UPSTREAM_GIT_BRANCH
}
"
)
fi
package_version
=
$(
echo
"
$git_version
"
|
sed
-e
's/^v//'
-e
's/-/+/'
-e
's/-/./g'
)
tarball
=
"
${
workdir
}
/
${
PROJECT
}
_
${
package_version
}
.orig.tar"
...
...
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