Re: git-svn dcommit ignores --username if there are cached credentials

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Eric Wong <normalperson <at> yhbt.net> writes:

> Hi Michel,
> 
> I wonder if this is because we explicitly reread the config directory
> when creating Git::SVN::Editor.
> 
> Does using --no-auth-cache work for you?
> 
> Otherwise, try pointing --config-dir= to an empty directory.
> 
> Or you can try this patch to force us to not reread the config_dir:
> 
> diff --git a/git-svn.perl b/git-svn.perl
> index 650c9e5..280fd15 100755
> --- a/git-svn.perl
> +++ b/git-svn.perl
> @@ -550,9 +550,6 @@ sub cmd_dcommit {
>  			my %ed_opts = ( r => $last_rev,
>  			                log => get_commit_entry($d)->{log},
>  			                ra => Git::SVN::Ra->new($url),
> -			                config => SVN::Core::config_get_config(
> -			                        $Git::SVN::Ra::config_dir
> -			                ),
>  			                tree_a => "$d~1",
>  			                tree_b => $d,
>  			                editor_cb => sub {
> 
> We have a good reason to read config dirs there for getting auto-props,
> though, so the above patch isn't going into git.git
> 

Hi Eric,

Thanks for your quick answer. Unfortunatly, none of the suggested workaround 
worked for me... I even tried to clone again the SVN repository passing the 
suggested options when cloning but no effect. BTW, does specifying --username 
at cloning time should add something to some config file (like .git/config) ?

Cheers,

Michel



--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]