magnayn / Hudson-GIT-plugin

Git plugin for Hudson
http://wiki.hudson-ci.org/display/HUDSON/Git+Plugin
51 stars 26 forks source link

Git url in http with username and password in the url does not do fetch #6

Open anagri opened 14 years ago

anagri commented 14 years ago

In my case I have a git repository over http with username and password embedded in the url like

http://user:pass@gitrepo.com/repo.git

In such cases when you configure the plugin for above url, it always ignores the password since it uses toString method of URIs which ignores password. I would suggest use toPrivateString method instead which includes the password.

I have submitted a pull request with the above suggested change. Please merge it and make a new plugin available asap.