Skip to content
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

changing the name of remote is not possible #274

Open
supervisitor opened this issue Jun 2, 2020 · 0 comments
Open

changing the name of remote is not possible #274

supervisitor opened this issue Jun 2, 2020 · 0 comments

Comments

@supervisitor
Copy link

I configured different servers and named them according to different rules. After that I wanted to clean and standardize the naming. So I exported my configuration to do the renaming with a text editor. But after importing the edited file I got the frustration! All servers with a "pass =" entry did not work anymore. e.g.:

this I'm able to rename:
[TheNameIwantToChange]
type = http
...
url = https://user:password@server.example.com/path
... because the login and pass is plain coded into the URL, so when I change this at the editor to something like this:
[TheNewName]
type = http
...
url = https://user:password@server.example.com/path
... it is still working!

but some like this:
[TheNameIwantToChange]
type = webdav
...
pass = 37102c6627b16d9cbc491aa56326f9d7
... will not work after I change the name to something like this:
[TheGreatNewName]
type = webdav
...
pass = 37102c6627b16d9cbc491aa56326f9d7
... because after the name change, the pass-line must be this:
pass = b1437804b63514c28a778455fa3a5e7e

So I suspect that the name of remote is stored in this "pass"... which makes the configuration a bit unmanageable. Could this be changed? It would also have the advantage that you could insert new remotes in the editor via copy&paste, and much more...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant