This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin for Android App Development and have Peter Sommerhoff on-line!
See this thread for details.
Win a copy of Kotlin for Android App Development this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Trying to execute git command from mingw32  RSS feed

 
Ranch Hand
Posts: 602
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i try to execute git command which is installed in my windows
(bitbucket mingw32 git )

the command:



   

the code which execute the git :


   
getting error:

   ERROR> Cloning into 'my_project'...
   ERROR> bash: /dev/tty: No such device or address
   ERROR> error: failed to execute prompt script (exit code 1)
   ERROR> fatal: could not read Password for 'https://user@bitbucket.org': Invalid argument
   Exception in thread "main" java.lang.AssertionError: runCommand returned 128
    at Utils.runCommand(Utils.java:71)
    at Main.main(tester.java:38)
 
Saloon Keeper
Posts: 9710
192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you installed the latest Git version, and enabled support for the Windows Credential Manager?

I believe what's happening here is that Git is trying to get the user's credentials to connect to the repository, and it's trying to do it by running a command through /dev/tty (the current console window).

Newer versions of Git allow you to use Window's built in credential manager, which will pop up a window for you to enter your username and password.

Anyway, why are you sending commands to Git through the console, instead of just using a library like JGit?
 
Meir Yan
Ranch Hand
Posts: 602
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jgit have its own implemention of how to call git
I want to use what I have installed and know , that is native git commands , and I have allot .
This is way I want to use git as I used to
Thanks
 
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!