Opened 14 months ago

Last modified 13 months ago

#356 new

Use specific revisions for builds

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

Description

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

git clone https://github.com/peterdobro/mom.git

svn co https://access-svn.nci.org.au/svn/cice/branches/access/cice_GC3_GA7 

To ensure reproducibility we should always use specific revisions.

Change History (2)

comment:1 Changed 14 months ago by Martin Dix

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

comment:2 Changed 13 months ago by Peter Dobrohotoff

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

git clone https://github.com/peterdobro/mom.git
cd mom
git log
...
commit 6101fb8495320ad1f00cade28a9af89c855302b3
Author: Peter Dobrohotoff <peter.dobrohotoff@csiro.au>
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.