Skip to content

fetch error #59

@mr-wolf-gb

Description

@mr-wolf-gb

Plz help

my declaration :

require_once './Git_cls.php';

Git::windows_mode();
$repo = Git::open('C:\xampp\htdocs\SyncPHP');
$repo->fetch();

Error :

Fatal error: Uncaught Exception: bash: /dev/tty: No such device or address error: failed to execute prompt script (exit code 1) fatal: could not read Username for 'https://gteamvsc.visualstudio.com': No error in C:\xampp\htdocs\SyncPHP\Git.php:348 Stack trace: #0 C:\xampp\htdocs\SyncPHP\Git.php(364): GitRepo->run_command('git fetch') #1 C:\xampp\htdocs\SyncPHP\Git.php(625): GitRepo->run('fetch') #2 C:\xampp\htdocs\SyncPHP\index.php(7): GitRepo->fetch() #3 {main} thrown in C:\xampp\htdocs\SyncPHP\Git.php on line 348


**

but when i make command with cmd 'git fetch' directly in repo directory work fine

**

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions