How we use Git

Gervase Markham gerv at mozilla.org
Fri Oct 31 11:26:37 UTC 2014


A quick quiz:

Q1: What git commands would I use to obtain an exact copy of 4.4.6 from
our git repo?

Q2: Same question for 4.4.4.

As far as I can see, the only way of doing this currently is to do:

git clone http://git.mozilla.org/bugzilla/bugzilla.git
cd bugzilla
git log
<look for the final 4.4.4 commit>
git checkout <sha1>
<get strange message about "detached HEAD">

Am I wrong?

If I'm not, then this isn't good.

Currently, we have branches for each release, but these contain all
fixes checked on on that branch, so even if you want "the latest 4.4
release", if you:

git checkout -b 4.4 origin/4.4

(which is already a complex command) then you actually get 4.4.6 plus
some more fixes.

I believe we need metadata in our git repo such that any (recent)
released version can be pulled and run bit-for-bit identical to the
release tarball. I think we also need a pointer (tag?) to "latest stable
release" on each branch which moves when we do a new release. Does that
make sense to people?

Gerv
_______________________________________________
dev-apps-bugzilla mailing list
dev-apps-bugzilla at lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-apps-bugzilla



More information about the developers mailing list