Re: git push #1

Frediano Ziglio <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <CAHt6W4eiYehGfoJFoxnoyW8+tVARzZzxHRt8R4ieYjazeie7bA@mail.gmail.com>
2012/5/21 James K. Lowden <[email protected]>:
> On Sat, 19 May 2012 13:57:28 +0100
> Frediano Ziglio <[email protected]> wrote:
>
>> I noted that you fixed the +1 version issue too. Good!
>> However I found a small issues, 0_91.46 should be 0.91.46.
>
> I'm still confused because "git branch" and "git describe" say
> different things:
>
> $ pwd
> /var/releng/freetds/Branch-0_91
>
> $ git branch
> * Branch-0_91
>  master
>
> $ git describe --tags
> branch-0_92-54-ga8789bc
>
> $ cd ../master
> $ pwd
> /var/releng/freetds/master
>
> $ git branch
> * master
>
> $ git describe --tags
> branch-0_92-325-g9a1fdd5
>
> Is that what we want?
>

Quite strange. Try to fetch tags again with

git fetch --tags

> I use the script below to generate the version.  I expect "git describe
> --tags" and "git branch" to both say something about "0_91" on the
> release branch and "0_92" on master.  If that's not a good assumption,
> I'll change it.
>
> --jkl
>
> #! /bin/sh
> set -e
>
> VERSION=$(git describe --tags \
>        | sed -E 's/^[^-]*-//; s/-g[[:xdigit:]]+//')
>
> BRANCH=$(git branch | awk '/\*/ {print $2}')
>
> test "${BRANCH}"
>
> if [ master = ${BRANCH} ]
> then
>    VERSION=$(echo $VERSION | awk -F'[_-]' '{print "dev."$1"_"$2"-"$3}')
> fi
> VERSION=$(echo $VERSION | sed 's/[_-]/./g')
> echo $VERSION
>

Frediano
_______________________________________________
FreeTDS mailing list
[email protected]
http://lists.ibiblio.org/mailman/listinfo/freetds
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.