ESMCI / git-fleximod

MIT License
2 stars 2 forks source link

fleximod hangs #47

Closed fvitt closed 1 week ago

fvitt commented 3 weeks ago

I would like fleximod to checkout my CARMA fork/branch in my sandbox. However, git-fleximod update hangs with this carma entry in .gitmodules:

[submodule "carma"]
    path = src/physics/carma/base
    url = https://github.com/fvitt/CARMA_base.git
        fxrequired = AlwaysRequired
        fxtag = 079218a
        fxDONOTUSEurl = https://github.com/ESCOMP/CARMA_base.git

I also tried to set fxtag to the branch name lapack_lusolv to get the head of the branch.

jedwards4b commented 3 weeks ago
git clone  https://www.github.com/ESCOMP/CAM -b cam_development
Cloning into 'CAM'...
warning: redirecting to https://github.com/ESCOMP/CAM.git/
remote: Enumerating objects: 37500, done.
remote: Counting objects: 100% (5/5), done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 37500 (delta 0), reused 0 (delta 0), pack-reused 37495
Receiving objects: 100% (37500/37500), 44.68 MiB | 17.44 MiB/s, done.
Resolving deltas: 100% (27026/27026), done.
Updating files: 100% (2194/2194), done.
derecho5: ~/sandboxes
:) cd CAM
derecho5: ~/sandboxes/CAM
:) emacs .gitmodules 
derecho5: ~/sandboxes/CAM
:) ./bin/git-fleximod update carma
e                carma not checked out, out of sync at tag None, expected tag is 079218a
               carma updated to 079218a
derecho5: ~/sandboxes/CAM
:) cd src/physics/carma/base/
derecho5: ~/sandboxes/CAM/src/physics/carma/base
:) git status
HEAD detached at 079218a
nothing to commit, working tree clean
 cd ../../../
derecho5: ~/sandboxes/CAM/src
:) cd ../
derecho5: ~/sandboxes/CAM
:) git restore .gitmodules
derecho5: ~/sandboxes/CAM
:) ./bin/git-fleximod update carma
s                carma lapack_lusolv01 079218a71f5ee3e66bdb9fd031023aa9e9afbd43 is out of sync with .gitmodules carma4_01
               carma up to date.

works fine for me.

fvitt commented 1 week ago

It is working OK for me now. I think we can close this issue. Thanks.