1

I have a field on a webpage were a user is able to enter a repository URL. After the user submits the form I what a prompt to tell the user the progress of the Git Clone like in a terminal. Is there a Javascript function that I could use to make this happen?

steve
  • 11
  • 1

1 Answers1

0

If you can call the local git clone command from your HTTP framework (as done here in PHP), then you can capture the output (on stderr)

Make sure, if you are calling git clone (on the client) from your Web GUI, to add --progress, since git clone would not run in a terminal (where --progress is active by default)

Note also that you are depending on the client Git installation.
For instance, --progress is more precise since Git 2.10 (Q3 2016).

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250