I am having a program continuously downloading projects from GitHub and then processing them. Then I found every now and then my program stuck in the GitHub prompt for typing user account and password.
My exploration about GitHub shows that these projects are no longer valid and that if I add my account and password in to "git clone" (e.g., https://user_name:pwd@github.com/dev/proj.git) I can avoid the password prompt and get a return code 32768.
Thus I use 32768 as a way to distinguish successfully downloads and failed downloads. But it turned out that the "git clone" of many valid GitHub projects also return "32768" as the status code.
So I am likely to have misunderstood "32768". My first problem is what "32768" means as a return code of "git clone".
I need to make the program run without supervision. My second question is how to make my program figure out the "git clone" finishes successfully without typing user account and password.
------add ---- Find some debugging, I found that the return code of git clone command in Linux terminal is 128. I ran the command using os.system(cmd_git_clone), the return code of os.system is 32768.