On Wed, Apr 22, 2015 at 4:03 PM, Svyatoslav Mishyn <j...@openmailbox.org>
wrote:
>
> lightweight (non-annotated) tags vs. annotated tags
> How to export tags (from fossil to git) ?
>
> I got this error, and did not get any tags
> error: Multiple updates for ref 'refs/tags/release' not allowed.
>
> with quick fix (aka lightweight (non-annotated) tags):
>
> Index: src/export.c
> ==================================================================
> --- /home/juef/fossil/e/fossil/src/export.c~0   2015-04-22
> 22:45:54.366630409
> +0300
> +++ /home/juef/fossil/e/fossil/src/export.c     2015-04-22
> 22:36:38.999984953
> +0300
> @@ -340,10 +340,11 @@
>      for(i=0; zEncoded[i]; i++){
>        if( !fossil_isalnum(zEncoded[i]) ) zEncoded[i] = '_';
>      }
> -    printf("tag %s\n", zEncoded);
> +/*  printf("tag %s\n", zEncoded); */
> +    printf("reset refs/tags/%s\n", zEncoded);
>      printf("from :%d\n", COMMITMARK(rid));
> -    printf("tagger <tagger> %s +0000\n", zSecSince1970);
> -    printf("data 0\n");
> +/*  printf("tagger <tagger> %s +0000\n", zSecSince1970);
> +    printf("data 0\n"); */
>      fossil_free(zEncoded);
>    }
>    db_finalize(&q);
>
> everything works as expected.


Looking at your code changes, I am concerned that information may be being
discarded, thus making Fossil => Git a one way transformation.
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to