Bug: fatal: not a git repository when no .gitattributes file is present

Open
#32 12 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
git, github-actions, shell, wordpress
Domain
ci-cd, devops, release

Research direction

Start with the linked action log and reproduce the deployment using a build directory that has neither .gitattributes nor .distignore. Trace the shell-based GitHub Action path that handles those files; done means the action passes and deploys all files from the prepared directory.

Written by the indexing model from the issue text.

Description

type:bug

Describe the bug
When there are no .gitattributes nor .distignore files present in the build, the action fails.

Please see the action log.

Steps to Reproduce
I'm using a build process that already puts all the clean files into a separate directory and starts the WP.org release from there. So I have only the files which need to be picked up.

Expected behavior
It just passes with all the files.

Dominant language
Shell
Stars
665
Forks
115
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from 10up/action-wordpress-plugin-deploy

All issues in 10up/action-wordpress-plugin-deploy

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.