Skip to content

Should check for dirty git status and dirty git index as part of r2g test and r2g publish #69

Open
@ORESoftware

Description

@ORESoftware

Use these:

if  ! git diff --quiet; then
   echo 'Changes to files need to be committed. Check your git index.';
   exit 1;
fi

if  test `git status --porcelain | wc -l` != '0'; then
   echo 'Changes to (untracked) files need to be committed. Check your git index.';
   exit 1;
fi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions