Flint
Check-in [d225e6e62e]
Not logged in

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

Overview
Comment:Set USER envvar to appease new user check on pull
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:d225e6e62e350f84ef154383a6c9fdeace869735
User & Date: james 2012-10-24 00:22:44
Context
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
2012-07-14
17:25
Code still expects password and salt fields to exist check-in: b31d6dbef3 user: james tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to nano/fossil.php.

235
236
237
238
239
240
241

242
243
244
245
246
247
248
        return false;
    }

    public function pullRepo($repo, $url = '')
    {
        if (file_exists("{$this->path}{$repo}.fossil")) {
            putenv('HOME=/tmp');

            exec("/usr/local/bin/fossil pull {$url} -R {$this->path}{$repo}.fossil", $output, $return);

            if ($return !== 0) {
                return false;
            }

            return true;







>







235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
        return false;
    }

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

            if ($return !== 0) {
                return false;
            }

            return true;