prezi / pride

Manages a pride of Gradle modules
Other
71 stars 13 forks source link

Don't store branch in .pride/config, only in exported config #115

Closed lptr closed 9 years ago

lptr commented 9 years ago

Now if the user does this:

$ pride init
$ pride add alma bela
$ cd alma
$ git checkout --branch some-branch

Then the .pride/config file will still contain modules.0.branch =, meaning the branch name is not stored. There should be a warning that the pride needs to be reinited or something.

lptr commented 9 years ago

Actually, reinit won't update the branch either. It should, though.

lptr commented 9 years ago

Maybe it would be better not to store the actual branch, but only export it, say, via pride export -- it could solve #105 as well.