From f1dee274c6e265c8cdbcda39ca828be775c965bd Mon Sep 17 00:00:00 2001 From: Andres Rios Tascon Date: Wed, 5 Jun 2024 09:33:05 -0400 Subject: [PATCH] Truncate git logs to 100 commits --- RecoTracker/LSTCore/standalone/code/core/trkCore.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/RecoTracker/LSTCore/standalone/code/core/trkCore.cc b/RecoTracker/LSTCore/standalone/code/core/trkCore.cc index c6f68da377ae9..2111a2576e955 100644 --- a/RecoTracker/LSTCore/standalone/code/core/trkCore.cc +++ b/RecoTracker/LSTCore/standalone/code/core/trkCore.cc @@ -1079,11 +1079,8 @@ void writeMetaData() { gSystem->Exec( TString::Format("(cd $TRACKLOOPERDIR && git --no-pager status && (cd - > /dev/null)) >> %s.gitversion.txt", ana.output_tfile->GetName())); - gSystem->Exec(TString::Format("(cd $TRACKLOOPERDIR && echo 'git log -n5' && (cd - > /dev/null)) >> %s.gitversion.txt", + gSystem->Exec(TString::Format("(cd $TRACKLOOPERDIR && echo 'git --no-pager log -n 100' && (cd - > /dev/null)) >> %s.gitversion.txt", ana.output_tfile->GetName())); - gSystem->Exec( - TString::Format("(cd $TRACKLOOPERDIR && git --no-pager log && (cd - > /dev/null)) >> %s.gitversion.txt", - ana.output_tfile->GetName())); gSystem->Exec(TString::Format("(cd $TRACKLOOPERDIR && echo 'git diff' && (cd - > /dev/null)) >> %s.gitversion.txt", ana.output_tfile->GetName())); gSystem->Exec(