- From:
- To:
- Subject: [chef] Re: Re: Re: site installing tomcat cookbook git deleted files from my java cookbook
- Date: Wed, 11 Jan 2012 10:49:51 -0800
thanks for the responses. i'll have to dig into my git history. at least
i'm now assured that i wasn't going on about my workflow in *completely*
the wrong way.
On Wed, 11 Jan 2012, Daniel DeLeo wrote:
>
On Wednesday, January 11, 2012 at 4:38 AM, Andrea Campi wrote:
>
>
>
>
>
>
> On Wed, Jan 11, 2012 at 4:08 AM,
>
> <
>
>
>
> (mailto:
)>
>
> wrote:
>
> >
>
> > hi. is this expected? maybe it's something i don't understand about git
>
> > and git branching and community cookbooks.
>
> >
>
> > long ago i had done "knife cookbook site install java", and committed
>
> > that cookbook to my own git repo. over time, i modifed that java
>
> > cookbook (added some templates, modifed the default recipe).
>
> >
>
> > just now i did a "knife cookbook site install tomcat", and doing so
>
> > whacked my mods to the java cookbook.
>
>
>
>
>
> Uhm, I see this though:
>
>
>
> Creating pristine copy branch chef-vendor-java
>
>
>
> So it seems knife disagrees, and couldn't find your previous site-install
>
> of the java cookbook.
>
> Otherwise it would have merged them instead of overwriting them.
>
> Double check your history???computers are usually more correct about this
>
> kind of stuff than human memory ;)
>
>
>
> Andrea
>
cookbook site install shouldn't ever do anything that can't be reverted
>
(that is, it should error out whenever your repo has uncommitted changes).
>
So check the git log and use git checkout REV or git reset --hard REV to
>
get back to the previous state.
Archive powered by MHonArc 2.6.16.