2

I am trying to deploy private repository with github onto Azure and it used to work perfectly until I made a piece of repository into separate private submodule that is also hosted on github.

Now, every time I try to deploy to Azure it breaks during submodule deployment with following message: fatal: could not read Username for 'https://github.com'

What can I do to fix it?

afuzzyllama
  • 6,538
  • 5
  • 47
  • 64
Zakkery
  • 420
  • 4
  • 11
  • I get the something similar in my activity log on Azure: Cloning into 'project'... bash: /dev/tty: No such device or address error: failed to execute prompt script (exit code 1) fatal: could not read Username for 'https://github.com': Invalid argument fatal: clone of 'https://github.com/username/submodule.git' into submodule path 'submodule' failed D:\Program Files (x86)\Git\cmd\git.exe submodule update --init --recursive – Corneliu Serediuc Aug 23 '16 at 20:30

1 Answers1

0

As in this issue (or this question), check the remote url of your main repo, and of your submodule

cd /path/to/repo
git remote -v
cd path/to/submodule
git remote -v

You could switch the url of the submodule to an ssh one instead of an https, add, commit and push the parent repo (to record the change), and then deploy again.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • 1
    Same problem.. Now I get ERROR: Repository not found.fatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists.Clone of 'git@github.com:username/repo.git' – Zakkery May 04 '16 at 14:37