-
Notifications
You must be signed in to change notification settings - Fork 670
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mirroring not updating #1059
Comments
Hi @lewellyn. Try changing MirrorService line 149 to something like... CredentialsProvider creds = null;
URIish fetchUri = new URIish(mirror.getURIs().get(0));
if (fetchUri.getUser() != null && fetchUri.getPass() != null) {
creds = new UsernamePasswordCredentialsProvider(fetchUri.getUser(), fetchUri.getPass());
}
FetchResult result = git.fetch()
.setCredentialsProvider(creds)
.setRemote(mirror.getName())
.setDryRun(testing).call(); If that works, submit a PR and we'll mainstream it. |
Thanks it worked with this: CredentialsProvider creds = null;
URIish fetchUri = mirror.getURIs().get(0);
if (fetchUri.getUser() != null && fetchUri.getPass() != null) {
creds = new UsernamePasswordCredentialsProvider(fetchUri.getUser(), fetchUri.getPass());
}
FetchResult result = git.fetch()
.setCredentialsProvider(creds)
.setRemote(mirror.getName())
.setDryRun(testing).call(); |
Just ran into this problem on 1.8.0 using Gitblit WAR. Did you ever send in a PR for this, and any chance it can get included in a future update to the WAR distribution? Thanks! |
No not yet. Would you like me to do that?
Best regards:
Gyula, Paál
+36 70 907 5659
paalgyula@paalgyula.com
On 2018. April 20. at 2:07:30, Christopher Michaelis (notifications@github.com) wrote:
Just ran into this problem on 1.8.0 using Gitblit WAR. Did you ever send in a PR for this, and any chance it can get included in a future update to the WAR distribution? Thanks!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
If you wouldn't mind, that'd be great! Thank you very much! |
I'm running into the same problem in version 1.8.1 of the jar distribution with the credentials embedded in the origin url or using Has this been fiixed in version 1.9.1? |
I don't see a pull request for this ever being created. I also did not find one referencing mirroring, either open or closed. So I guess it hasn't been fixed, yet. |
I've set up a mirror per the instructions at http://gitblit.com/setup_mirrors.html
The source repository is hosted on GitHub Enterprise, and it was mirrored using HTTPS with a username and password. The Gitblit log shows: (sanitized to not give internal user, repo, or hostnames)
I notice that the logged URL does not include the password, but it is displayed in the Gitblit Web UI. I've been trying to follow exactly where and how the password may be lost (and hoping it's not a wild goose chase where it's simply not logged…), but I'm not succeeding so far. I'll update this ticket with code, if I manage to solve it on my own.
This is a showstopper bug for me, so I'll be investigating it heavily. However, if you have any suggestions for likely places to look (or know that it's fixed since 1.7.1), I'm all ears. 👂
The text was updated successfully, but these errors were encountered: