You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by je...@apache.org on 2015/05/30 14:39:15 UTC

[12/14] allura git commit: [#7806] ticket:778 Add USER env var for GitPython

[#7806] ticket:778 Add USER env var for GitPython


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/cff0988c
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/cff0988c
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/cff0988c

Branch: refs/heads/ib/7806
Commit: cff0988c5f7cf86762fe6d5fba34326d9bce7311
Parents: f39aac6
Author: Igor Bondarenko <je...@gmail.com>
Authored: Sat May 30 13:45:37 2015 +0300
Committer: Igor Bondarenko <je...@gmail.com>
Committed: Sat May 30 13:45:37 2015 +0300

----------------------------------------------------------------------
 Dockerfile | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/cff0988c/Dockerfile
----------------------------------------------------------------------
diff --git a/Dockerfile b/Dockerfile
index e054b6f..916ed33 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -35,4 +35,8 @@ RUN apt-get update && apt-get install -y \
 RUN locale-gen en_US.UTF-8
 ENV LANG en_US.UTF-8
 
+# GitPython uses this to determine current user when committing (used in
+# tests). If this is not set, it uses os.getlogin, which fails inside docker.
+ENV USER root
+
 WORKDIR /allura