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

config.xml conflicts with git config #972

Closed
turicas opened this issue Sep 17, 2012 · 2 comments
Closed

config.xml conflicts with git config #972

turicas opened this issue Sep 17, 2012 · 2 comments

Comments

@turicas
Copy link

turicas commented Sep 17, 2012

I changed the remote origin of a repository by executing:

cd ~/Sparkleshare/some-repo
git remote rm origin
git remote add origin new-uri
git fetch --all

But Sparkleshare relies on ~/.config/sparkleshare/config.xml to syncronize the repository, which preserves the old origin. I think it's a bug - Sparkleshare should track any repository inside ~/Sparkleshare and use the git configuration of each repository to syncronize, instead of maintaining another meta-information (it could be a problem in future when not using Git, but if Sparkleshare will use its own configuration file, probably a good solution is to update this file with information returned by the Git repository).

@hbons
Copy link
Owner

hbons commented Sep 17, 2012

SparkleShare can't keep track of any git repo. When you add a project a lot of custom configuration is added to make things run smoothly. The urls are stored in the config.xml as it's needed by the backend (mainly to be compatible with different types of backends). The fact that the url also exists in the repo itself is just the default behaviour of git-clone, it's not actually used.

@hbons hbons closed this as completed Sep 17, 2012
@hbons
Copy link
Owner

hbons commented Sep 17, 2012

Now that I think about it, it would be nice to only have to update the configuration in one place, so I'll let the repo config be updated by the config.xml on startup.

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

2 participants