From bfed40eec490f3c22c848b0c1c1550d8b349f821 Mon Sep 17 00:00:00 2001
From: Jean-Philippe Roemer <roemer.jp@gmail.com>
Date: Mon, 12 Oct 2015 21:28:26 +0100
Subject: [PATCH 1/2] Docker repository path backward compatibility fix: -
 resolve #1765 - create link to old git repository path:
 `/home/git/gogs-repository`

---
 docker/s6/gogs/setup | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/docker/s6/gogs/setup b/docker/s6/gogs/setup
index 8c09ff74c..626cda1f0 100755
--- a/docker/s6/gogs/setup
+++ b/docker/s6/gogs/setup
@@ -12,7 +12,11 @@ fi
 
 cd /app/gogs
 
+# Link volumed data with app data
 ln -sf /data/gogs/log  ./log
 ln -sf /data/gogs/data ./data
 
+# Backward Compatibility with Docker v0.6.15
+ln -sf /data/git /home/git
+
 chown -R git:git /data /app/gogs ~git/

From 533c6a8e081e8fc1d8001daeccfb15542c6e10f6 Mon Sep 17 00:00:00 2001
From: Jean-Philippe Roemer <roemer.jp@gmail.com>
Date: Mon, 12 Oct 2015 21:52:20 +0100
Subject: [PATCH 2/2] Edit comment to make it clear that we are talking about
 container version

---
 docker/s6/gogs/setup | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docker/s6/gogs/setup b/docker/s6/gogs/setup
index 626cda1f0..e64a36d6e 100755
--- a/docker/s6/gogs/setup
+++ b/docker/s6/gogs/setup
@@ -16,7 +16,7 @@ cd /app/gogs
 ln -sf /data/gogs/log  ./log
 ln -sf /data/gogs/data ./data
 
-# Backward Compatibility with Docker v0.6.15
+# Backward Compatibility with Gogs Container v0.6.15
 ln -sf /data/git /home/git
 
 chown -R git:git /data /app/gogs ~git/