Skip to content

Commit

Permalink
Truncate git logs to 100 commits
Browse files Browse the repository at this point in the history
  • Loading branch information
ariostas authored and slava77 committed Jun 6, 2024
1 parent ee1e94e commit f1dee27
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions RecoTracker/LSTCore/standalone/code/core/trkCore.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit f1dee27

Please sign in to comment.