]> source.dussan.org Git - gitea.git/commitdiff
Removed trailing white spaces
authorTristan Storch <tstorch@math.uni-bielefeld.de>
Sat, 30 Aug 2014 13:12:53 +0000 (15:12 +0200)
committerTristan Storch <tstorch@math.uni-bielefeld.de>
Sat, 30 Aug 2014 13:12:53 +0000 (15:12 +0200)
Removed trailing whitespaces with

```sh
for file in `grep -r " $" * | cut -d : -f 1 | sort | uniq | grep -v " "`; do sed -i 's/[ \t]*$//' $file; done
```

and some handwork.

33 files changed:
cmd/web.go
conf/app.ini
conf/gitignore/C Sharp
modules/auth/ldap/README.md
public/css/gogs.css
public/fonts/fontawesome-webfont.svg
public/js/app.js
public/ng/fonts/fontawesome-webfont.svg
public/ng/less/gogs/base.less
public/ng/less/gogs/dashboard.less
scripts/dockerfiles/build.sh
scripts/dockerfiles/images/gogits/Dockerfile
scripts/dockerfiles/images/gogits/deploy.sh
scripts/dockerfiles/images/memcache/Dockerfile
scripts/dockerfiles/images/mysql/Dockerfile
scripts/dockerfiles/images/postgres/Dockerfile
scripts/gogs_supervisord.sh
scripts/start.sh
templates/admin/auth/new.tmpl
templates/home.tmpl
templates/install.tmpl
templates/mail/notify/collaborator.tmpl
templates/org/team/new.tmpl
templates/repo/bare.tmpl
templates/repo/issue/create.tmpl
templates/repo/issue/view.tmpl
templates/repo/settings/collaboration.tmpl
templates/repo/single_file.tmpl
templates/user/auth/activate.tmpl
templates/user/auth/forgot_passwd.tmpl
templates/user/auth/reset_passwd.tmpl
templates/user/dashboard/dashboard.tmpl
templates/user/profile.tmpl

index 2bc9be457a1c557a7bf2cf7de0fffd451f4c0613..e0ef3a76a36984b2d1501c6c674fc636d3b8a506 100644 (file)
@@ -42,7 +42,7 @@ import (
 var CmdWeb = cli.Command{
        Name:  "web",
        Usage: "Start Gogs web server",
-       Description: `Gogs web server is the only thing you need to run, 
+       Description: `Gogs web server is the only thing you need to run,
 and it takes care of all the other things for you`,
        Action: runWeb,
        Flags:  []cli.Flag{},
index 99ed628ec1cfa2d590282d5a84636a5b4e899504..c646160e50743b940d5a098f6c9dfb6b0feb2958 100644 (file)
@@ -7,14 +7,14 @@ RUN_USER = git
 RUN_MODE = dev
 
 [repository]
-ROOT = 
+ROOT =
 SCRIPT_TYPE = bash
 
 [server]
 PROTOCOL = http
 DOMAIN = localhost
 ROOT_URL = %(PROTOCOL)s://%(DOMAIN)s:%(HTTP_PORT)s/
-HTTP_ADDR = 
+HTTP_ADDR =
 HTTP_PORT = 3000
 SSH_PORT = 22
 ; Disable CDN even in "prod" mode
@@ -27,7 +27,7 @@ CERT_FILE = custom/https/cert.pem
 KEY_FILE = custom/https/key.pem
 ; Upper level of template and static file path
 ; default is the path where Gogs is executed
-STATIC_ROOT_PATH = 
+STATIC_ROOT_PATH =
 ; Application level GZIP support
 ENABLE_GZIP = false
 
@@ -87,20 +87,20 @@ SUBJECT = %(APP_NAME)s
 ; Mail server
 ; Gmail: smtp.gmail.com:587
 ; QQ: smtp.qq.com:25
-HOST = 
+HOST =
 ; Mail from address
-FROM = 
+FROM =
 ; Mailer user name and password
-USER = 
-PASSWD = 
+USER =
+PASSWD =
 
 [oauth]
 ENABLED = false
 
 [oauth.github]
 ENABLED = false
-CLIENT_ID = 
-CLIENT_SECRET = 
+CLIENT_ID =
+CLIENT_SECRET =
 SCOPES = https://api.github.com/user
 AUTH_URL = https://github.com/login/oauth/authorize
 TOKEN_URL = https://github.com/login/oauth/access_token
@@ -109,16 +109,16 @@ TOKEN_URL = https://github.com/login/oauth/access_token
 ; https://console.developers.google.com/project
 [oauth.google]
 ENABLED = false
-CLIENT_ID = 
-CLIENT_SECRET = 
+CLIENT_ID =
+CLIENT_SECRET =
 SCOPES = https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile
 AUTH_URL = https://accounts.google.com/o/oauth2/auth
 TOKEN_URL = https://accounts.google.com/o/oauth2/token
 
 [oauth.qq]
 ENABLED = false
-CLIENT_ID = 
-CLIENT_SECRET = 
+CLIENT_ID =
+CLIENT_SECRET =
 SCOPES = all
 ; QQ 互联
 ; AUTH_URL = https://graph.qq.com/oauth2.0/authorize
@@ -129,8 +129,8 @@ TOKEN_URL = https://open.t.qq.com/cgi-bin/oauth2/access_token
 
 [oauth.weibo]
 ENABLED = false
-CLIENT_ID = 
-CLIENT_SECRET = 
+CLIENT_ID =
+CLIENT_SECRET =
 SCOPES = all
 AUTH_URL = https://api.weibo.com/oauth2/authorize
 TOKEN_URL = https://api.weibo.com/oauth2/access_token
@@ -190,7 +190,7 @@ MAX_FILES = 10
 ; Specifies the format for fully outputed dates. Defaults to RFC1123
 ; Special supported values are ANSIC, UnixDate, RubyDate, RFC822, RFC822Z, RFC850, RFC1123, RFC1123Z, RFC3339, RFC3339Nano, Kitchen, Stamp, StampMilli, StampMicro and StampNano
 ; For more information about the format see http://golang.org/pkg/time/#pkg-constants
-FORMAT = 
+FORMAT =
 
 [log]
 ROOT_PATH =
@@ -204,11 +204,11 @@ LEVEL = Trace
 
 ; For "console" mode only
 [log.console]
-LEVEL = 
+LEVEL =
 
 ; For "file" mode only
 [log.file]
-LEVEL = 
+LEVEL =
 ; This enables automated log rotate(switch of following options), default is true
 LOG_ROTATE = true
 ; Max line number of single file, default is 1000000
@@ -222,7 +222,7 @@ MAX_DAYS = 7
 
 ; For "conn" mode only
 [log.conn]
-LEVEL = 
+LEVEL =
 ; Reconnect host for every single message, default is false
 RECONNECT_ON_MSG = false
 ; Try to reconnect when connection is lost, default is false
@@ -230,28 +230,28 @@ RECONNECT = false
 ; Either "tcp", "unix" or "udp", default is "tcp"
 PROTOCOL = tcp
 ; Host address
-ADDR = 
+ADDR =
 
 ; For "smtp" mode only
 [log.smtp]
-LEVEL = 
+LEVEL =
 ; Name displayed in mail title, default is "Diagnostic message from serve"
 SUBJECT = Diagnostic message from serve
 ; Mail server
-HOST = 
+HOST =
 ; Mailer user name and password
-USER = 
+USER =
 PASSWD =
 ; Receivers, can be one or more, e.g. ["1@example.com","2@example.com"]
-RECEIVERS = 
+RECEIVERS =
 
 ; For "database" mode only
 [log.database]
-LEVEL = 
+LEVEL =
 ; Either "mysql" or "postgres"
-DRIVER = 
+DRIVER =
 ; Based on xorm, e.g.: root:root@localhost/gogs?charset=utf8
-CONN = 
+CONN =
 
 [i18n]
 LANGS = en-US,zh-CN,de-DE
index 8ec39a1dc85b24a614d36636c539bb72f43336d2..d26d7cd5984bfeac9424ad647e3990abfed859b8 100644 (file)
@@ -59,7 +59,7 @@ _ReSharper*
 *.ncrunch*
 .*crunch*.local.xml
 
-# Installshield output folder 
+# Installshield output folder
 [Ee]xpress
 
 # DocProject is a documentation generator add-in
index 8b508e0fe07c227ea00a69661c6ed5a7b540b1d9..531ba85361762e4adb9d5d008cf95be9e1cf175f 100644 (file)
@@ -13,7 +13,7 @@ If there's connection error, the server will be disabled and won't be checked ag
 
 ## Usage
 
-In the [security] section, set 
+In the [security] section, set
 >  LDAP_AUTH = true
 
 then for each LDAP source, set
index cfa113411b463424984363e67b9d70d804cfe741..2d30d0628418ccdf4d3e2a9cdc4cc4d35b67143f 100755 (executable)
@@ -1266,7 +1266,7 @@ body {
 #issue .issue-child .issue-content .user .avatar {
     height: 21px;
     width: 21px;
-} 
+}
 
 #issue .issue-line {
     border-color: #CCC;
@@ -1808,7 +1808,7 @@ body {
     position: absolute;
     top: 0px;
     bottom: 0px;
-    
+
     margin: 5px;
     padding: 8px;
 
index a9f84695031139c2542f582e9312310f2186ff58..047844b8ef349f2d6a2f096683326331e3d75180 100755 (executable)
 <glyph horiz-adv-x="1792" />
 <glyph horiz-adv-x="1792" />
 </font>
-</defs></svg> 
\ No newline at end of file
+</defs></svg>
\ No newline at end of file
index 9dea65eb8583935b713fa034b10e7036b2d06eca..a5bb9569ef0a8e15a0047f36a38675bc56c1d9fc 100644 (file)
@@ -546,7 +546,7 @@ function initIssue() {
             if ($textArea.attr("id") == "issue-reply-content") {
                 var $closeBtn = $('#issue-close-btn');
                 var $openBtn = $('#issue-open-btn');
-    
+
                 if ($textArea.val().length) {
                     $closeBtn.val($closeBtn.data("text"));
                     $openBtn.val($openBtn.data("text"));
@@ -575,7 +575,7 @@ function initIssue() {
         $hoverImage.addClass("attachment-preview-img");
 
         $hoverElement.append($hoverImage);
-        $(document.body).append($hoverElement); 
+        $(document.body).append($hoverElement);
 
         var over = function() {
             var $this = $(this);
@@ -605,7 +605,7 @@ function initIssue() {
                     $hoverElement.css({"top": top + "px", "left": left + "px"});
                     $hoverElement.css({"height": height + 16, "width": width + 16});
                     $hoverElement.show();
-                });            
+                });
             } else {
                 $hoverElement.show();
             }
@@ -624,7 +624,7 @@ function initIssue() {
         var $addButton    = $("#attachments-button");
         var files         = [];
         var fileInput     = document.getElementById("attachments-input");
-        
+
         if (fileInput === null) {
             return;
         }
@@ -635,9 +635,9 @@ function initIssue() {
             files.splice($parent.data("index"), 1);
             $parent.remove();
         });
-        
+
         var clickedButton;
-        
+
         $('input[type="submit"],input[type="button"],button.btn-success', fileInput.form).on('click', function() {
             clickedButton = this;
 
@@ -722,7 +722,7 @@ function initIssue() {
 
             xhr.open("POST", this.action, true);
             xhr.send(data);
-            
+
             return false;
         });
 
@@ -826,7 +826,7 @@ function initIssue() {
                         //window.location.reload();
                         $a.data("assigned", uid);
 
-                        if (uid > 0) {    
+                        if (uid > 0) {
                             $('.clear-assignee').toggleShow();
                             $(".assignee > p").html('<img src="' + img + '"><strong>' + text + '</strong>');
                         } else {
@@ -862,12 +862,12 @@ function initIssue() {
         $('.clear-milestone').toggleShow();
     }
     $('.milestone', '#issue').on('click', 'li.milestone-item', function () {
-        var id = $(this).data("id");    
+        var id = $(this).data("id");
         if (is_issue_bar) {
             var m = $m.data("milestone");
             if (id != m) {
                 var text = $(this).text();
-                
+
                 $.post($m.data("ajax"), {
                     issue: $('#issue').data("id"),
                     milestone: id
@@ -876,7 +876,7 @@ function initIssue() {
                         //window.location.reload();
                         $m.data("milestone", id);
 
-                        if (id > 0) {    
+                        if (id > 0) {
                             $('.clear-milestone').toggleShow();
                             $(".milestone > .name").html('<a href="' + location.pathname + '?milestone=' + id + '"><strong>' + text + '</strong></a>');
                         } else {
@@ -982,7 +982,7 @@ function initIssue() {
                     $(item).addClass("no-checked");
 
                     $("#label-" + id, $labels).remove();
-                    
+
                     if ($labels.children(".label-item").length == 0) {
                         $labels.append("<p>None yet</p>");
                     }
@@ -991,7 +991,7 @@ function initIssue() {
 
                     $(item).removeClass("no-checked");
                     $(item).addClass("checked");
-                    
+
                     $("p:not([class])", $labels).remove();
 
                     var $l = $("<p></p>");
index a9f84695031139c2542f582e9312310f2186ff58..047844b8ef349f2d6a2f096683326331e3d75180 100755 (executable)
 <glyph horiz-adv-x="1792" />
 <glyph horiz-adv-x="1792" />
 </font>
-</defs></svg> 
\ No newline at end of file
+</defs></svg>
\ No newline at end of file
index 0ca733c5197deeb97f5d6414b17ea1be270e1f13..241846dbbdeb845f3823eafef69f9c25a37ebdf1 100644 (file)
@@ -254,11 +254,11 @@ clear: both;
 .table {
     width: 100%;
     max-width: 100%;
-    > thead > tr > th, 
-    > tbody > tr > th, 
-    > tfoot > tr > th, 
-    > thead > tr > td, 
-    > tbody > tr > td, 
+    > thead > tr > th,
+    > tbody > tr > th,
+    > tfoot > tr > th,
+    > thead > tr > td,
+    > tbody > tr > td,
     > tfoot > tr > td {
         border-top: 1px solid #e7eaec;
         line-height: 1.42857;
@@ -268,7 +268,7 @@ clear: both;
     th {
         text-align: left;
     }
-} 
+}
 .table-striped {
     >tbody>tr:nth-child(odd)>td,
     >tbody>tr:nth-child(odd)>th {
index 6bf1150ba73a0e37270385d9a7caaeb3a8ce643c..afef60cfab7076db00a8f35e217c0f1f3bd03384 100644 (file)
@@ -189,8 +189,8 @@ The dashboard page style
             }
         }
         a {
-            text-overflow: ellipsis; 
-            -o-text-overflow: ellipsis; 
+            text-overflow: ellipsis;
+            -o-text-overflow: ellipsis;
             overflow: hidden;
         }
     }
index 4617da1421bac785a68107b87e2e55dc32127c7e..36f6a468a11641201f8d8467240b408d32c8ebc4 100755 (executable)
@@ -21,13 +21,13 @@ fi
 
 # Replace the database root password in database image Dockerfile.
 sed -i "s/THE_DB_PASSWORD/$DB_PASSWORD/g" images/$DB_TYPE/Dockerfile
-# Replace the database root password in gogits image deploy.sh file. 
+# Replace the database root password in gogits image deploy.sh file.
 sed -i "s/THE_DB_PASSWORD/$DB_PASSWORD/g" images/gogits/deploy.sh
-# Replace the apt source in gogits image Dockerfile. 
+# Replace the apt source in gogits image Dockerfile.
 sed -i "s/#$APT_SOURCE#//" images/gogits/Dockerfile
 # Uncomment the installation of database lib in gogs Dockerfile
 sed -i "s/#$DB_TYPE#//" images/gogits/Dockerfile
-# Replace the database type in gogits image deploy.sh file. 
+# Replace the database type in gogits image deploy.sh file.
 sed -i "s/THE_DB_TYPE/$DB_TYPE/g" images/gogits/deploy.sh
 
 if [ $MEM_TYPE != "" ]
index a171e15e3bfce25b56b762328577a09ffd21c408..bda9e424dd151980d4444156d5f66e0f3d71557a 100644 (file)
@@ -3,7 +3,7 @@ MAINTAINER  Meaglith Ma <genedna@gmail.com> (@genedna)
 
 #aliyun#RUN echo "deb http://mirrors.aliyun.com/ubuntu/ saucy main restricted" > /etc/apt/sources.list && echo "deb http://mirrors.aliyun.com/ubuntu/ saucy-updates main restricted" >> /etc/apt/sources.list && echo "deb http://mirrors.aliyun.com/ubuntu/ saucy universe" >> /etc/apt/sources.list && echo "deb http://mirrors.aliyun.com/ubuntu/ saucy-updates universe" >> /etc/apt/sources.list && echo "deb http://mirrors.aliyun.com/ubuntu/ saucy multiverse" >> /etc/apt/sources.list && echo "deb http://mirrors.aliyun.com/ubuntu/ saucy-updates multiverse" >> /etc/apt/sources.list && echo "deb http://mirrors.aliyun.com/ubuntu/ saucy-backports main restricted universe multiverse" >> /etc/apt/sources.list && echo "deb http://mirrors.aliyun.com/ubuntu/ saucy-security main restricted" >> /etc/apt/sources.list && echo "deb http://mirrors.aliyun.com/ubuntu/ saucy-security universe" >> /etc/apt/sources.list && echo "deb http://mirrors.aliyun.com/ubuntu/ saucy-security multiverse" >> /etc/apt/sources.list
 
-#nchc#RUN echo "deb http://free.nchc.org.tw/ubuntu/ saucy main restricted" >> /etc/apt/source.list && echo "deb-src http://free.nchc.org.tw/ubuntu/ saucy main restricted" >> /etc/apt/source.list && echo "deb http://free.nchc.org.tw/ubuntu/ saucy-updates main restricted" >> /etc/apt/source.list && echo "deb-src http://free.nchc.org.tw/ubuntu/ saucy-updates main restricted" >> /etc/apt/source.list && echo "deb http://free.nchc.org.tw/ubuntu/ saucy universe" >> /etc/apt/source.list && echo "deb-src http://free.nchc.org.tw/ubuntu/ saucy universe" >> /etc/apt/source.list && echo "deb http://free.nchc.org.tw/ubuntu/ saucy-updates universe" >> /etc/apt/source.list && echo "deb-src http://free.nchc.org.tw/ubuntu/ saucy-updates universe" >> /etc/apt/source.list && echo "deb http://free.nchc.org.tw/ubuntu/ saucy multiverse" >> /etc/apt/source.list && echo "deb-src http://free.nchc.org.tw/ubuntu/ saucy multiverse" >> /etc/apt/source.list && echo "deb http://free.nchc.org.tw/ubuntu/ saucy-updates multiverse" >> /etc/apt/source.list && echo "deb-src http://free.nchc.org.tw/ubuntu/ saucy-updates multiverse" >> /etc/apt/source.list && echo "deb http://free.nchc.org.tw/ubuntu/ saucy-backports main restricted universe multiverse" >> /etc/apt/source.list && echo "deb-src http://free.nchc.org.tw/ubuntu/ saucy-backports main restricted universe multiverse" >> /etc/apt/source.list && echo "deb http://free.nchc.org.tw/ubuntu/ saucy-security main restricted" >> /etc/apt/source.list && echo "deb-src http://free.nchc.org.tw/ubuntu/ saucy-security main restricted" >> /etc/apt/source.list && echo "deb http://free.nchc.org.tw/ubuntu/ saucy-security universe" >> /etc/apt/source.list && echo "deb-src http://free.nchc.org.tw/ubuntu/ saucy-security universe" >> /etc/apt/source.list && echo "deb http://free.nchc.org.tw/ubuntu/ saucy-security multiverse" >> /etc/apt/source.list && echo "deb-src http://free.nchc.org.tw/ubuntu/ saucy-security multiverse" >> /etc/apt/source.list && echo "deb http://extras.ubuntu.com/ubuntu saucy main" >> /etc/apt/source.list && echo "deb-src http://extras.ubuntu.com/ubuntu saucy main" >> /etc/apt/source.list 
+#nchc#RUN echo "deb http://free.nchc.org.tw/ubuntu/ saucy main restricted" >> /etc/apt/source.list && echo "deb-src http://free.nchc.org.tw/ubuntu/ saucy main restricted" >> /etc/apt/source.list && echo "deb http://free.nchc.org.tw/ubuntu/ saucy-updates main restricted" >> /etc/apt/source.list && echo "deb-src http://free.nchc.org.tw/ubuntu/ saucy-updates main restricted" >> /etc/apt/source.list && echo "deb http://free.nchc.org.tw/ubuntu/ saucy universe" >> /etc/apt/source.list && echo "deb-src http://free.nchc.org.tw/ubuntu/ saucy universe" >> /etc/apt/source.list && echo "deb http://free.nchc.org.tw/ubuntu/ saucy-updates universe" >> /etc/apt/source.list && echo "deb-src http://free.nchc.org.tw/ubuntu/ saucy-updates universe" >> /etc/apt/source.list && echo "deb http://free.nchc.org.tw/ubuntu/ saucy multiverse" >> /etc/apt/source.list && echo "deb-src http://free.nchc.org.tw/ubuntu/ saucy multiverse" >> /etc/apt/source.list && echo "deb http://free.nchc.org.tw/ubuntu/ saucy-updates multiverse" >> /etc/apt/source.list && echo "deb-src http://free.nchc.org.tw/ubuntu/ saucy-updates multiverse" >> /etc/apt/source.list && echo "deb http://free.nchc.org.tw/ubuntu/ saucy-backports main restricted universe multiverse" >> /etc/apt/source.list && echo "deb-src http://free.nchc.org.tw/ubuntu/ saucy-backports main restricted universe multiverse" >> /etc/apt/source.list && echo "deb http://free.nchc.org.tw/ubuntu/ saucy-security main restricted" >> /etc/apt/source.list && echo "deb-src http://free.nchc.org.tw/ubuntu/ saucy-security main restricted" >> /etc/apt/source.list && echo "deb http://free.nchc.org.tw/ubuntu/ saucy-security universe" >> /etc/apt/source.list && echo "deb-src http://free.nchc.org.tw/ubuntu/ saucy-security universe" >> /etc/apt/source.list && echo "deb http://free.nchc.org.tw/ubuntu/ saucy-security multiverse" >> /etc/apt/source.list && echo "deb-src http://free.nchc.org.tw/ubuntu/ saucy-security multiverse" >> /etc/apt/source.list && echo "deb http://extras.ubuntu.com/ubuntu saucy main" >> /etc/apt/source.list && echo "deb-src http://extras.ubuntu.com/ubuntu saucy main" >> /etc/apt/source.list
 
 RUN mkdir -p /go
 ENV PATH /usr/local/go/bin:/go/bin:$PATH
@@ -16,7 +16,7 @@ RUN apt-get install -yq vim sudo
 RUN curl -sL https://golang.org/dl/go1.3.linux-amd64.tar.gz | tar -v -C /usr/local -xz
 RUN cd /usr/local/go/src && ./make.bash --no-clean 2>&1
 
-RUN go get -u -d github.com/gogits/gogs 
+RUN go get -u -d github.com/gogits/gogs
 RUN cd $GOPATH/src/github.com/gogits/gogs && git checkout dev && git pull origin dev && go install && go build -tags redis
 
 # Clean all the unused packages
index 9408524820f426012cf351190f7329974c7ffe81..4f7e7a5b0f6ff671f2da31bd471db96899368fdf 100644 (file)
@@ -9,15 +9,15 @@ MEM_TYPE=THE_MEM_TYPE
 DB_TYPE_LINE=`awk '$0 ~ str{print NR}' str="DB_TYPE = mysql" $GOPATH/src/github.com/gogits/gogs/conf/app.ini`
 DB_PASSWORD_LINE=`awk '$0 ~ str{print NR+1}' str="USER = root" $GOPATH/src/github.com/gogits/gogs/conf/app.ini`
 
-sed -i "${DB_TYPE_LINE}s/.*$/DB_TYPE = $DB_TYPE/g" $GOPATH/src/github.com/gogits/gogs/conf/app.ini 
-sed -i "${DB_PASSWORD_LINE}s/.*$/PASSWD = $DB_PASSWORD/g" $GOPATH/src/github.com/gogits/gogs/conf/app.ini 
+sed -i "${DB_TYPE_LINE}s/.*$/DB_TYPE = $DB_TYPE/g" $GOPATH/src/github.com/gogits/gogs/conf/app.ini
+sed -i "${DB_PASSWORD_LINE}s/.*$/PASSWD = $DB_PASSWORD/g" $GOPATH/src/github.com/gogits/gogs/conf/app.ini
 
 
 
 if [ $MEM_TYPE != "" ]
   then
   MEM_HOST_LINE=`awk '$0 ~ str{print NR+6}' str="ADAPTER = memory" $GOPATH/src/github.com/gogits/gogs/conf/app.ini`
-                
+
   _MEM_ADDR=`echo $MEM_PORT | cut -d '/' -f 3 | cut -d ':' -f 1`
   _MEM_PORT=`echo $MEM_PORT | cut -d '/' -f 3 | cut -d ':' -f 2`
 
@@ -54,7 +54,7 @@ fi
 #sed -i "/HOST = 127.0.0.1:3306/c\HOST = $DB_PORT_3306_TCP_ADDR:$DB_PORT_3306_TCP_PORT" $GOPATH/src/github.com/gogits/gogs/conf/app.ini
 sed -i "/HOST = 127.0.0.1:3306/c\HOST = `echo $DB_PORT | cut -d '/' -f 3`" $GOPATH/src/github.com/gogits/gogs/conf/app.ini
 
-cd $GOPATH/src/github.com/gogits/gogs/ 
+cd $GOPATH/src/github.com/gogits/gogs/
 
 # The sudo is a must here, or the go within docker container won't get the current user by os.Getenv("USERNAME")
 sudo ./gogs web
index a1a2b6ee41016dbd4d4803a45655c8ac2108d5f7..d3a54d95482cde4c7a08e02baa9fcbc8ead67fad 100644 (file)
@@ -13,7 +13,7 @@ RUN apt-get install -y memcached
 EXPOSE 11211
 
 # Default Memcached run command arguments
-# Change to limit memory when creating container in Tutum 
+# Change to limit memory when creating container in Tutum
 CMD ["-m", "64"]
 
 # Set the user to run Memcached daemon
index a9a72e35c4ee10a9a1fd018ab7f83becd4b148e1..bbf5c0a8346ec95864b4d3780cbd512fab1cf8f0 100644 (file)
@@ -6,20 +6,20 @@ MAINTAINER  Meaglith Ma <genedna@gmail.com> (@genedna)
 RUN apt-get install -y --force-yes software-properties-common
 RUN add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"
 RUN apt-get --yes --force-yes update
-RUN apt-get --yes --force-yes upgrade 
+RUN apt-get --yes --force-yes upgrade
 
 ENV MYSQL_PASSWORD THE_DB_PASSWORD
 
-RUN echo "mysql-server mysql-server/root_password password $MYSQL_PASSWORD" | debconf-set-selections  
+RUN echo "mysql-server mysql-server/root_password password $MYSQL_PASSWORD" | debconf-set-selections
 RUN echo "mysql-server mysql-server/root_password_again password $MYSQL_PASSWORD" | debconf-set-selections
 
-RUN apt-get update && apt-get install -y --force-yes mysql-server 
+RUN apt-get update && apt-get install -y --force-yes mysql-server
 RUN sed -i -e"s/^bind-address\s*=\s*127.0.0.1/bind-address = 0.0.0.0/" /etc/mysql/my.cnf
 
 RUN service mysql restart
 
-RUN echo "mysql -uroot -p$MYSQL_PASSWORD -e 'drop database if exists gogs;'" >> import.sh  
-RUN echo "mysql -uroot -p$MYSQL_PASSWORD -e 'create database gogs;'" >> import.sh  
+RUN echo "mysql -uroot -p$MYSQL_PASSWORD -e 'drop database if exists gogs;'" >> import.sh
+RUN echo "mysql -uroot -p$MYSQL_PASSWORD -e 'create database gogs;'" >> import.sh
 RUN chmod +x import.sh
 
 RUN apt-get autoremove -y
@@ -32,4 +32,4 @@ RUN    /usr/sbin/mysqld & \
 
 EXPOSE 3306
 
-CMD ["/usr/bin/mysqld_safe", "--skip-syslog", "--log-error=/dev/null"]  
+CMD ["/usr/bin/mysqld_safe", "--skip-syslog", "--log-error=/dev/null"]
index 9d76873c9827e350f18fc1728ef6ddacb5f47b72..79349992284d4c28029483306204b61b67bdacce 100644 (file)
@@ -2,7 +2,7 @@ FROM ubuntu
 MAINTAINER SvenDowideit@docker.com
 
 # Add the PostgreSQL PGP key to verify their Debian packages.
-# It should be the same key as https://www.postgresql.org/media/keys/ACCC4CF8.asc 
+# It should be the same key as https://www.postgresql.org/media/keys/ACCC4CF8.asc
 RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8
 
 # Add PostgreSQL's repository. It contains the most recent stable release
@@ -20,7 +20,7 @@ RUN apt-get -y -q install python-software-properties software-properties-common
 RUN apt-get -y -q install postgresql-9.3 postgresql-client-9.3 postgresql-contrib-9.3
 
 # Note: The official Debian and Ubuntu images automatically ``apt-get clean``
-# after each ``apt-get`` 
+# after each ``apt-get``
 
 # Run the rest of the commands as the ``postgres`` user created by the ``postgres-9.3`` package when it was ``apt-get installed``
 USER postgres
@@ -34,7 +34,7 @@ RUN    /etc/init.d/postgresql start &&\
     createdb -O root gogs
 
 # Adjust PostgreSQL configuration so that remote connections to the
-# database are possible. 
+# database are possible.
 RUN echo "host all  all    0.0.0.0/0  md5" >> /etc/postgresql/9.3/main/pg_hba.conf
 
 # And add ``listen_addresses`` to ``/etc/postgresql/9.3/main/postgresql.conf``
index 3038407ed4f20789ebba4f93a1bdc743be4e980f..4488960e6af401faf809268597ff7a6d84dd6fcc 100755 (executable)
@@ -5,8 +5,8 @@ echo 'plase remember to modify the command path in etc/supervisord.conf(line 23)
 PID="/tmp/supervisord.pid"
 CONF="etc/supervisord.conf"
 
-LOGDIR="log"  
-if [ ! -d $LOGDIR ]; then  
+LOGDIR="log"
+if [ ! -d $LOGDIR ]; then
     mkdir $LOGDIR
 fi
 
index dd9a461c4c63eda4b65c3826fe8f7300de34fd4c..85de4556fff547272d8e31fe77207e9854048cfd 100755 (executable)
@@ -5,7 +5,7 @@
 #
 # start gogs web
 #
-IFS=' 
+IFS='
        '
 PATH=/bin:/usr/bin:/usr/local/bin
 USER=$(whoami)
index 12d47d2869ef3e63adc33a3c8b3c54d8969dd631..8f9f5ccc01c1ac598bda64541a94b6bbd46f78b6 100644 (file)
@@ -26,7 +26,7 @@
                                     <label class="req" for="name">{{.i18n.Tr "admin.auths.auth_name"}}</label>
                                     <input class="ipt ipt-large ipt-radius {{if .Err_AuthName}}ipt-error{{end}}" id="name" name="name" value="{{.name}}" required />
                                 </div>
-                                <div class="ldap"> 
+                                <div class="ldap">
                                     <div class="field">
                                         <label class="req" for="domain">{{.i18n.Tr "admin.auths.domain"}}</label>
                                         <input class="ipt ipt-large ipt-radius {{if .Err_Domain}}ipt-error{{end}}" id="domain" name="domain" value="{{.domain}}" />
index 2825e14ad8f3f5981f8783bccc35c4b13b40ae99..ba9cbe402b1bd1fdb5b7643393374fb17f737f67 100644 (file)
@@ -1,4 +1,4 @@
-{{template "ng/base/head" .}} 
+{{template "ng/base/head" .}}
 {{template "ng/base/header" .}}
 <div id="promo-wrapper">
     <div class="container clear">
index 9ba610b62d5952c33407934ccfc0bc04794f8c69..bf443de5a01aa1922819a58a97908f6e19fcdad3 100644 (file)
@@ -87,7 +87,7 @@
                 <p class="help-block">The user has access to visit and run Gogs.</p>
             </div>
         </div>
-        
+
         <div class="form-group">
             <label class="col-md-3 control-label">Domain: </label>
             <div class="col-md-8">
@@ -95,7 +95,7 @@
                 <p class="help-block">This affects SSH clone URL.</p>
             </div>
         </div>
-        
+
         <div class="form-group">
             <label class="col-md-3 control-label">App URL: </label>
             <div class="col-md-8">
index 0664b4c640cf1b77f89b29b01e7df9e4fe242fba..36a3149daa9337fe1bbfbd02cc8fbb807a96ef5b 100644 (file)
@@ -10,7 +10,7 @@
     <p>
         ---
         <br>
-        View it on Gogs: 
+        View it on Gogs:
         <br>
         <a href="{{.AppUrl}}{{.RepoLink}}">{{.AppUrl}}{{.RepoLink}}</a>
     </p>
index ce8c15236bd7f9395c94fd7876cd30c1c2a26a12..f9632fcfd416b598f5696be5fdcf71e1006097a7 100644 (file)
             <div class="field">
                 <h4 class="text-center">{{.i18n.Tr "org.team_permission_desc"}}</h4>
                 <label></label>
-                <input name="permission" type="radio" value="read" {{if or .PageIsOrgTeamsNew (eq .Team.Authorize 1)}}checked{{end}}> {{.i18n.Tr "org.teams.read_access"}} 
+                <input name="permission" type="radio" value="read" {{if or .PageIsOrgTeamsNew (eq .Team.Authorize 1)}}checked{{end}}> {{.i18n.Tr "org.teams.read_access"}}
                 <label></label>
                 <p class="text-grey note">{{.i18n.Tr "org.teams.read_access_helper"}}</p>
                 <label></label>
-                <input name="permission" type="radio" value="write" {{if eq .Team.Authorize 2}}checked{{end}}> {{.i18n.Tr "org.teams.write_access"}} 
+                <input name="permission" type="radio" value="write" {{if eq .Team.Authorize 2}}checked{{end}}> {{.i18n.Tr "org.teams.write_access"}}
                 <label></label>
                 <p class="text-grey note">{{.i18n.Tr "org.teams.write_access_helper"}}</p>
                 <label></label>
-                <input name="permission" type="radio" value="admin" {{if eq .Team.Authorize 3}}checked{{end}}> {{.i18n.Tr "org.teams.admin_access"}} 
+                <input name="permission" type="radio" value="admin" {{if eq .Team.Authorize 3}}checked{{end}}> {{.i18n.Tr "org.teams.admin_access"}}
                 <label></label>
                 <p class="text-grey note">{{.i18n.Tr "org.teams.admin_access_helper"}}</p>
             </div>
index 60000647d304d00bde85f1b4cb988961e7459238..5b943bad638dd161660f64b41fe7413761fcbdbf 100644 (file)
@@ -14,7 +14,7 @@
     <div id="repo-content" class="clear container">
         <div id="repo-bare">
             <div id="repo-bare-start" class="panel panel-radius">
-                <div class="panel-header"> 
+                <div class="panel-header">
                     <a class="btn btn-small btn-black btn-header btn-radius right" href="{{.RepoLink}}/settings">{{.i18n.Tr "repo.settings"}}</a>
                     <strong>Quick Start</strong>
                 </div>
index c018884272b37fa43c562f36f2ca605238dba85d..9b5468397d8e245382e2a69205983e34bc9e7ef0 100644 (file)
                 </div>
                 {{if .AttachmentsEnabled}}
                 <div id="attached">
-                    <div id="attached-list">                        
-                        <b>Attachments:</b> 
+                    <div id="attached-list">
+                        <b>Attachments:</b>
                     </div>
                 </div>
                 {{end}}
index 3828928aa64a58b257148b9781e973032b3798b5..ff68ce0cc9e38f85a8a49627cdeae887e80e2fc0 100644 (file)
                                         <div class="tab-pane issue-preview-content" id="issue-edit-preview">Loading...</div>
                                     </div>
                                 </div>
-                            </div>                        
+                            </div>
                         </div>
                         {{with $attachments := .Issue.Attachments}}
                         {{if $attachments}}
                         <div class="attachments">
                             <span class="attachment-label label label-info">Attachments:</span>
-                                
+
                             {{range $attachments}}
                             <a class="attachment label label-default" href="{{.IssueId}}/attachment/{{.Id}}">{{.Name}}</a>
                             {{end}}
                         </div>
                         {{end}}
-                        {{end}}    
+                        {{end}}
                     </div>
                     {{range .Comments}}
                     {{/* 0 = COMMENT, 1 = REOPEN, 2 = CLOSE, 3 = ISSUE, 4 = COMMIT, 5 = PULL */}}
                             {{if .AttachmentsEnabled}}
                             <div id="attached">
                                 <div id="attached-list">
-                                    <b>Attachments:</b> 
+                                    <b>Attachments:</b>
                                 </div>
                             </div>
                             {{end}}
index deb09e1f54fe4e60aaa5bc6b342bc383abc51854..fe4ec498683e6f95c1eeb77771b34bc7929e921d 100644 (file)
@@ -44,4 +44,4 @@
            </div>
        </div>
 </div>
-{{template "ng/base/footer" .}} 
\ No newline at end of file
+{{template "ng/base/footer" .}}
\ No newline at end of file
index 8c09f3ec1c6923c16fce0284c276d1dc999f2b6d..0ce04e13baf5d935132c6a00198a2047b7e25b9b 100644 (file)
@@ -21,7 +21,7 @@
         </div>
         {{end}}
     </div>
-    
+
     {{if not .FileIsText}}
     <div class="panel-body file-body file-code code-view">
         {{if .IsImageFile}}
index acdad9e80b9e25e1e5c6bcb0da6575dcb7f40cb3..6a9e0b0d529047bdf803ffeefd2ad440c11d4c04 100644 (file)
@@ -1,4 +1,4 @@
-{{template "ng/base/head" .}} 
+{{template "ng/base/head" .}}
 {{template "ng/base/header" .}}
 <div id="sign-wrapper">
     <form class="form-align form panel sign-panel sign-form container panel-radius" id="sign-up-form" action="/user/activate" method="post">
index 3b5512673b2708c2571eb8704d940a5a99f2a1fe..3e9f76e935a3ddc47fbfd13d2c2299bdff20d106 100644 (file)
@@ -1,4 +1,4 @@
-{{template "ng/base/head" .}} 
+{{template "ng/base/head" .}}
 {{template "ng/base/header" .}}
 <div id="sign-wrapper">
     <form class="form-align form panel sign-panel sign-form container panel-radius" id="sign-up-form" action="/user/forget_password" method="post">
index d17abde2ba9c1bc82590a95996a83fcfde8b3b61..3c9da96b67909a226fd2b9df6ed43c3098b8b9eb 100644 (file)
@@ -1,4 +1,4 @@
-{{template "ng/base/head" .}} 
+{{template "ng/base/head" .}}
 {{template "ng/base/header" .}}
 <div id="sign-wrapper">
     <form class="form-align form panel sign-panel sign-form container panel-radius" id="sign-up-form" action="/user/reset_password?code={{.Code}}" method="post">
index d0789b96d64b11a26b8dfe8d28e552b2f8f67542..df4fc0b65e5e0811e1f8a3be1421e3f4674aac5d 100644 (file)
@@ -11,7 +11,7 @@
                 </div>
                 <div class="content left {{if eq .GetOpType 5}}push-news{{end}}">
                     <p class="text-bold">
-                        <a href="/{{.GetActUserName}}">{{.GetActUserName}}</a> 
+                        <a href="/{{.GetActUserName}}">{{.GetActUserName}}</a>
                         {{if eq .GetOpType 1}}
                         {{$.i18n.Tr "action.create_repo" .GetRepoLink .GetRepoLink | Str2html}}
                         {{else if eq .GetOpType 5}}
index 4f80f1659db9a03cfb65b82c47c42b39b51f6883..fe4e32f70320dac20cf099fedd3831b67fd78d24 100644 (file)
@@ -9,7 +9,7 @@
             {{if .Owner.FullName}}<span id="user-full-name" class="center-block">{{.Owner.FullName}}</span>{{end}}
             <span id="user-name" class="center-block">{{.Owner.Name}}</span>
         </div>
-        
+
         <div class="profile-info">
             <ul class="list-group">
                 {{if .Owner.Location}}