Opened 16 months ago

Last modified 15 months ago

#356 new

Use specific revisions for builds

Reported by: Martin Dix Owned by:
Priority: major Component: ACCESS-CM2
Keywords: Cc:


At the moment, many (all?) suites simply use the head revision for MOM and CICE. E.g.

git clone

svn co 

To ensure reproducibility we should always use specific revisions.

Change History (2)

comment:1 Changed 16 months ago by Martin Dix

What's the best way to do this with git?

comment:2 Changed 15 months ago by Peter Dobrohotoff

A hard git reset can be used to revert to a previous version. For example:

git clone
cd mom
git log
commit 6101fb8495320ad1f00cade28a9af89c855302b3
Author: Peter Dobrohotoff <>
Date:   Mon Feb 19 16:35:31 2018 +1100
git reset --hard 6101fb8495320ad1f00cade28a9af89c855302b3

Note that a hard reset throws away changes to tracked files, and so should be done before making further changes.

Note: See TracTickets for help on using tickets.