Jump to content

imre

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by imre

  1. 15 hours ago, calbzam said:

    Hi,

    In the following link we explain how you can map the Plastic users with the git emails when using GitSync:

    https://www.plasticscm.com/documentation/gitsync/plastic-scm-version-control-gitsync-guide#Mappinguseraccounts

    Regards,

    Carlos.

    I read that paragraph several times.

    I tried to simplify my scenario:
    I have a simple git repository with name `ExampleMini`, on my computer. Here is the its content log:

    (master)$git log --format=full
    commit a87dc19880e014b6e54a45b007be563f0ed3d87b (HEAD -> master)
    Author: OtherUser <other_user@gmail.com>
    Commit: Foo <Foo@gmail.com>
    
        second
    
    commit c2d43e2f888aabda8fc32985046709b6e2816827
    Author: OneUser <one_user@gmail.com>
    Commit: Foo <Foo@gmail.com>
    
        first
     (master)$

    I run a git server on my computer with next command:
     

    git daemon --base-path=. --export-all --reuseaddr --informative-errors --verbose

    I configured the `gitsync.conf` like:

     (master)$cat ~/AppData/Local/plastic4/gitsync.conf
    [email-mapping]
    little_dog = one_user@gmail.com
    little_cat = other_user@gmail.com
    little_bird = Foo@gmail.com
     (master)$

    After that I created a new repository via UI:
    image.png.29344eed1746e6db15f0fcd04da00462.png
    After that I sync with local `ExampleMini` git repository:
    image.thumb.png.7a6217fb57ba73f8b0c7c5f9b243b92d.png
    image.png.9ba90cf56809088c020a0ab7b883fa20.png
    Eventually sync is finished successfully:
    image.png.d6e34455d4864b8faf70181cb9b8d64d.png
    But the 'Created by' fields does not contain plastic user from the 'gitsync.conf' file, instead it contains my (unity) plastic account id.
    image.thumb.png.b37b0a25a16b09719fbf3e7d0e7402c5.png


    How can I migrate the authors of a git repository to be changeset creators in plastic scm repository?
    Is there any possibility to achieve it?
     

  2. Hi there,

    I would like to import a git repository to a new plastic scm repository. (It would be a one-time import.)
    I made an import from UI by `GitSync` and from the command line by `git fast-export` but at both methods, the authors of the git commits were not imported correctly into the plastic repository. All imported changesets got my plastic user as owner, but there are two other authors in the git repo. I would like to see almost the correct history with owners/authors in the plastic repository after the import.
    (I am a cloud user right now.)

    How can I import all git authors as plastic owners into my new plastic repository?

    Thanks in advance!

×
×
  • Create New...