mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
community/gitlab to 9.4.3-2
This commit is contained in:
parent
f7b7392760
commit
4a140fc5fd
1 changed files with 11 additions and 2 deletions
|
@ -12,7 +12,7 @@
|
|||
|
||||
pkgname=gitlab
|
||||
pkgver=9.4.3
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="Project management and code hosting application"
|
||||
arch=('x86_64')
|
||||
url="https://gitlab.com/gitlab-org/gitlab-ce/tree/master#README"
|
||||
|
@ -70,7 +70,16 @@ _logdir="/var/log/${pkgname}"
|
|||
_srcdir="gitlab-ce-v${pkgver}"
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}/${_srcdir}"*
|
||||
cd "${srcdir}"
|
||||
|
||||
# Get first 7 characters from sha1 which has 40 characters in total
|
||||
local revision=$(ls -d ${_srcdir}* | rev | cut -c 34-40 | rev)
|
||||
|
||||
cd "${_srcdir}"*
|
||||
|
||||
msg2 "Patching git revision in config/initializers/2_app.rb..."
|
||||
sed -i -e "s|REVISION = Gitlab::Popen.popen(%W(#{config.git.bin_path} log --pretty=format:%h -n 1)).first.chomp.freeze|REVISION = \"${revision}\"|" \
|
||||
config/initializers/2_app.rb
|
||||
|
||||
export SKIP_STORAGE_VALIDATION='true'
|
||||
|
||||
|
|
Loading…
Reference in a new issue