Flint
Check-in [0d70924603]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Set USER envvar for all repo actions
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:0d70924603a9c9aec39530df601d9f3629e79b22
User & Date: james 2012-10-25 01:48:00
Context
2012-12-27
04:15
Add 2012 to copyright check-in: d8ab003c29 user: james tags: trunk
2012-10-25
01:48
Set USER envvar for all repo actions check-in: 0d70924603 user: james tags: trunk
2012-10-24
00:22
Set USER envvar to appease new user check on pull check-in: d225e6e62e user: james tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to nano/fossil.php.

19
20
21
22
23
24
25

26
27
28
29
30
31
32
..
91
92
93
94
95
96
97

98
99
100
101
102
103
104
...
158
159
160
161
162
163
164

165
166
167
168
169
170
171
            $content = "#!/usr/local/bin/fossil\ndirectory: ./\nnotfound: http://{$_SERVER['SERVER_NAME']}/notfound";
            file_put_contents("{$this->path}repository", $content);
            chmod("{$this->path}repository", 0555);
        }

        if (!file_exists("{$this->path}{$repo}.fossil")) {
            putenv('HOME=/tmp');

            exec("/usr/local/bin/fossil new -A {$this->user['username']} {$this->path}{$repo}.fossil", $output, $return);

            if ($return !== 0) {
                if (file_exists("{$this->path}{$repo}.fossil")) {
                    unlink("{$this->path}{$repo}.fossil");
                }

................................................................................
            $content = "#!/usr/local/bin/fossil\ndirectory: ./\nnotfound: http://{$_SERVER['SERVER_NAME']}/notfound";
            file_put_contents("{$this->path}repository", $content);
            chmod("{$this->path}repository", 0555);
        }

        if (!file_exists("{$this->path}{$repo}.fossil")) {
            putenv('HOME=/tmp');

            exec("/usr/local/bin/fossil clone -A {$this->user['username']} {$url} {$this->path}{$repo}.fossil", $output,
                 $return);

            if ($return !== 0) {
                if (file_exists("{$this->path}{$repo}.fossil")) {
                    unlink("{$this->path}{$repo}.fossil");
                }
................................................................................
            $content = "#!/usr/local/bin/fossil\ndirectory: ./\nnotfound: http://{$_SERVER['SERVER_NAME']}/notfound";
            file_put_contents("{$this->path}repository", $content);
            chmod("{$this->path}repository", 0555);
        }

        if (!file_exists("{$this->path}{$repo}.fossil")) {
            putenv('HOME=/tmp');


            if (!@move_uploaded_file($file['tmp_name'], "{$this->path}{$repo}.fossil")) {
                return false;
            }

            exec("/usr/local/bin/fossil config -R {$this->path}{$repo}.fossil export project /tmp/config",
                 $output, $return);







>







 







>







 







>







19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
..
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
...
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
            $content = "#!/usr/local/bin/fossil\ndirectory: ./\nnotfound: http://{$_SERVER['SERVER_NAME']}/notfound";
            file_put_contents("{$this->path}repository", $content);
            chmod("{$this->path}repository", 0555);
        }

        if (!file_exists("{$this->path}{$repo}.fossil")) {
            putenv('HOME=/tmp');
            putenv("USER={$this->user['username']}");
            exec("/usr/local/bin/fossil new -A {$this->user['username']} {$this->path}{$repo}.fossil", $output, $return);

            if ($return !== 0) {
                if (file_exists("{$this->path}{$repo}.fossil")) {
                    unlink("{$this->path}{$repo}.fossil");
                }

................................................................................
            $content = "#!/usr/local/bin/fossil\ndirectory: ./\nnotfound: http://{$_SERVER['SERVER_NAME']}/notfound";
            file_put_contents("{$this->path}repository", $content);
            chmod("{$this->path}repository", 0555);
        }

        if (!file_exists("{$this->path}{$repo}.fossil")) {
            putenv('HOME=/tmp');
            putenv("USER={$this->user['username']}");
            exec("/usr/local/bin/fossil clone -A {$this->user['username']} {$url} {$this->path}{$repo}.fossil", $output,
                 $return);

            if ($return !== 0) {
                if (file_exists("{$this->path}{$repo}.fossil")) {
                    unlink("{$this->path}{$repo}.fossil");
                }
................................................................................
            $content = "#!/usr/local/bin/fossil\ndirectory: ./\nnotfound: http://{$_SERVER['SERVER_NAME']}/notfound";
            file_put_contents("{$this->path}repository", $content);
            chmod("{$this->path}repository", 0555);
        }

        if (!file_exists("{$this->path}{$repo}.fossil")) {
            putenv('HOME=/tmp');
            putenv("USER={$this->user['username']}");

            if (!@move_uploaded_file($file['tmp_name'], "{$this->path}{$repo}.fossil")) {
                return false;
            }

            exec("/usr/local/bin/fossil config -R {$this->path}{$repo}.fossil export project /tmp/config",
                 $output, $return);