Skip to content
This repository was archived by the owner on Feb 27, 2020. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit df2d46d

Browse files
committedJan 23, 2020
[misc] export all git repository revisions
There is a multi purpose shell script for the gathering of git revisions now. It will extract all revisions that can be found in traversing of the current working directory. This effectively includes the overleaf/overleaf repo and any others that may be added downstream.
1 parent bb34850 commit df2d46d

File tree

3 files changed

+8
-24
lines changed

3 files changed

+8
-24
lines changed
 

‎Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ RUN git clone https://github.com/overleaf/overleaf.git \
2222
# Install dependencies needed to run configuration scripts
2323
# --------------------------------------------------------
2424
ADD ${baseDir}/package.json /var/www/package.json
25-
ADD ${baseDir}/git-revision.js /var/www/git-revision.js
25+
ADD ${baseDir}/git-revision.sh /var/www/git-revision.sh
2626
RUN cd /var/www && npm install
2727

2828

@@ -78,7 +78,7 @@ COPY ${baseDir}/init_scripts/ /etc/my_init.d/
7878

7979
# Stores the version installed for each service
8080
# ---------------------------------------------
81-
RUN cd /var/www && node git-revision > revisions.txt
81+
RUN cd /var/www && ./git-revision.sh > revisions.txt
8282

8383

8484
# Set Environment Variables

‎git-revision.js

-22
This file was deleted.

‎git-revision.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
3+
for gitDir in $(find "$PWD" -name .git); do
4+
echo -n "$(dirname ${gitDir}),"
5+
git --git-dir="$gitDir" rev-parse HEAD
6+
done

0 commit comments

Comments
 (0)
This repository has been archived.