Installation problem during “Synchronizing Git and SVN revision information”

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
SophieT
Posts: 1
Joined: Fri Sep 15, 2023 1:47 pm
Location: NIOZ Royal Netherlands Institute for Sea Research

Installation problem during “Synchronizing Git and SVN revision information”

#1 Unread post by SophieT »

Hi,

I have started with ROMS recently but have run into an issue during installation via git in the step “Synchronizing Git and SVN revision information” (https://www.myroms.org/wiki/Git#Synchro ... nformation). When following the explanation on that ROMS wiki page, the Git commit hash and the corresponding SVN revision properties do not appear in the ROMS source files after the command
$ git checkout HEAD -- “$(git rev-parse --show-toplevel)
even though the command seems to run properly (it takes a few minutes and then finishes without terminal output).

The resulting header of ROMS/Modules/mod_ncparam.F contains no commit hashes:
!git $Id: mod_ncparam.F 1198 2023-09-01 19:00:59Z arango $
!svn $Id: mod_ncparam.F 1198 2023-09-01 19:00:59Z arango $
Instead of the expected e.g.:
!git $Id: b42658ab652647fca27d50af4afa15c3401fe544 $
!svn $Id: mod_ncparam.F 968 2019-06-17 16:02:48Z arango $

Possibly the issue has to do with that the previous commands
$ git config filter.id.smudge ".git_filters/id.smudge %f"
$ git config filter.id.clean ".git_filters/id.clean %f"
did not change the ~/.gitconfig file (I am not sure if they should change the .gitconfig?). So I also tried to configure the filters manually by adding
[filter "id"]
clean = .git_filters/id.clean %f
smudge = .git_filters/id.smudge %f
To ~/.gitconfig and again applying the smudge filter, but that made no difference.

Does anyone know what could be the solution to this issue?

I am working on a HPC cluster with OS “Red Hat Enterprise Linux Server release 7.9 (Maipo)”. I access it via ssh from OS X 13.5.2.

Thank you in advance for any help,
Kind regards,
Sophie

User avatar
arango
Site Admin
Posts: 1368
Joined: Wed Feb 26, 2003 4:41 pm
Location: DMCS, Rutgers University
Contact:

Re: Installation problem during “Synchronizing Git and SVN revision information”

#2 Unread post by arango »

Nowadays, we distribute ROMS in :arrow: github.com/myroms. Please follow the instructions on https://github.com/myroms/roms/wiki

Post Reply