Skip to content

Commit c6fd82c

Browse files
authored
Merge pull request #2554 from sachilles/configure-git-provided-by-gitaly
Address inconsistencies when using git (packaged with gitaly)
2 parents 8d05283 + 64e6256 commit c6fd82c

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ RUN set -ex && \
4949
libpq5 zlib1g libyaml-0-2 libssl1.1 \
5050
libgdbm6 libreadline8 libncurses5 libffi7 \
5151
libxml2 libxslt1.1 libcurl4 libicu66 libre2-dev tzdata unzip libimage-exiftool-perl \
52-
libcurl4-openssl-dev libexpat1-dev gettext libz-dev libssl-dev libpcre2-dev build-essential git-core \
5352
libmagic1 \
5453
&& update-locale LANG=C.UTF-8 LC_MESSAGES=POSIX \
5554
&& locale-gen en_US.UTF-8 \

assets/build/install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ BUILD_DEPENDENCIES="gcc g++ make patch pkg-config cmake paxctl \
2424
libpq-dev zlib1g-dev libyaml-dev libssl-dev \
2525
libgdbm-dev libreadline-dev libncurses5-dev libffi-dev \
2626
libxml2-dev libxslt-dev libcurl4-openssl-dev libicu-dev \
27-
gettext libkrb5-dev"
27+
gettext libkrb5-dev \
28+
libexpat1-dev libz-dev libpcre2-dev build-essential git-core"
2829

2930
## Execute a command as GITLAB_USER
3031
exec_as_git() {
@@ -150,7 +151,6 @@ chown -R ${GITLAB_USER}: ${GITLAB_GITALY_INSTALL_DIR}
150151

151152
# install git bundled with gitaly.
152153
make -C ${GITLAB_GITALY_BUILD_DIR} git GIT_PREFIX=/usr/local
153-
apt remove -y git-core
154154

155155
# clean up
156156
rm -rf ${GITLAB_GITALY_BUILD_DIR}

assets/runtime/config/gitlabhq/gitlab.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1147,7 +1147,7 @@ production: &base
11471147
# CAUTION!
11481148
# Use the default values unless you really know what you are doing
11491149
git:
1150-
bin_path: /usr/bin/git
1150+
bin_path: /usr/local/bin/git
11511151

11521152
## ActionCable settings
11531153
action_cable:

0 commit comments

Comments
 (0)