Skip to content

Commit

Permalink
Sets git clone depth parameter to 100 to make git describe works.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-vincent committed Oct 20, 2018
1 parent 787f0a4 commit 1bd5407
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packaging/docker/freelan/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ RUN apt-get update && \
rm -rf /var/lib/apt/lists/*

# Get FreeLAN sources and compile it
RUN git clone -b $FREELAN_BRANCH --depth=50 https://github.com/freelan-developers/freelan.git && \
RUN git clone -b $FREELAN_BRANCH --depth=100 https://github.com/freelan-developers/freelan.git && \
cd freelan && \
scons --mode=release install prefix=/usr/ -j2 && \
cd .. && rm -rf freelan
Expand Down
2 changes: 1 addition & 1 deletion provisioning/roles/freelan-build/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
become_user: root

- name: Checkout freelan sources
git: repo={{ local_sources_root }} dest={{ sources_root }} version={{ repository_version }} accept_hostkey=yes recursive=no depth=1
git: repo={{ local_sources_root }} dest={{ sources_root }} version={{ repository_version }} accept_hostkey=yes recursive=no depth=100
tags:
- build

Expand Down

0 comments on commit 1bd5407

Please sign in to comment.