Index: src/commit.c =================================================================== RCS file: /usr/local/cvs/cvsnt/src/commit.c,v retrieving revision 1.24 diff -u -r1.24 commit.c --- src/commit.c 15 Aug 2002 18:20:01 -0000 1.24 +++ src/commit.c 10 Sep 2002 15:50:30 -0000 @@ -56,6 +56,7 @@ static void ci_delproc PROTO((Node *p)); static void masterlist_delproc PROTO((Node *p)); static char *locate_rcs PROTO((char *file, char *repository)); +static char branch_env_buffer[1024]; struct commit_info { @@ -863,7 +864,17 @@ freevers_ts (&vers); return (1); } - } + if( vers->tag ){ + strcpy(branch_env_buffer, vers->tag); + cvs_putenv("CVS_BRANCH",branch_env_buffer); + } else { + strcpy(branch_env_buffer, "HEAD"); + cvs_putenv("CVS_BRANCH",branch_env_buffer); + } + } else { + strcpy(branch_env_buffer, saved_tag); + cvs_putenv("CVS_BRANCH",branch_env_buffer); + } if (status == T_MODIFIED && !force_ci && vers->ts_conflict) { char *filestamp;