Open
Description
Hello,
For one repository the tag information is shown correctly on mac and windows but not on Amazon Linux. What can be the issue? How to debug?
I am running this code:
var getRepoInfo = require('git-repo-info');
var info = getRepoInfo();
console.log(info);
ON MAC:
{ sha: '3cbf8687a1290700841cd151b69ef4327c744d76',
abbreviatedSha: '3cbf8687a1',
branch: null,
tag: '2.0.0',
committer: null,
committerDate: null,
author: null,
authorDate: null,
commitMessage: null,
root: '/Users/rt/projects/tmp/client-app',
commonGitDir: '/Users/rt/projects/tmp/client-app/.git',
worktreeGitDir: '/Users/rt/projects/tmp/client-app/.git',
lastTag: '2.0.0',
commitsSinceLastTag: 0 }
On Amazon linux (this is run jenkins slave machine - the code checkout and everything done in jenkisfile.)
{ sha: '3cbf8687a1290700841cd151b69ef4327c744d76',
abbreviatedSha: '3cbf8687a1',
branch: null,
tag: null,
committer: null,
committerDate: null,
author: null,
authorDate: null,
commitMessage: null,
root: '/data/jenkins/workspace/FRONTEND-JOBS/deploy-job' }
Metadata
Metadata
Assignees
Labels
No labels