Skip to content

Ignore dot files and make command files executable, fixes #1822 - #1861

Merged
rfay merged 5 commits into
ddev:masterfrom
rfay:20191002_no_dotfiles
Nov 2, 2019
Merged

rfay merged 5 commits into
ddev:masterfrom
rfay:20191002_no_dotfiles

Conversation

@rfay

@rfay rfay commented Oct 3, 2019

Copy link
Copy Markdown
Member

The Problem/Issue/Bug:

#1822 points out that files beginning with a dot ("."), which are normally considered hidden, are showing up as custom commands.

It seems the files in questions, .gitattributes files, were apparently added to make sure that custom commands don't show up inside the containers with CRLF line endings, which make everything fail.

How this PR Solves The Problem:

  • Ignore dotfiles
  • Add a .gitattributes in .ddev/commands which may be able to prevent the problem of scripts with CRLF getting into containers.

Manual Testing Instructions:

  • On Windows and macOS, check in a command with CRLF in it. Make sure that gets fixed by git.
  • Create file beginning with a dot in .ddev/commands/ and see that it does not show up when you type 'ddev'.

Automated Testing Overview:

Related Issue Link(s):

OP #1822

Release/Deployment notes:

@rfay
rfay force-pushed the 20191002_no_dotfiles branch 2 times, most recently from 0784c68 to 4df1948 Compare October 14, 2019 20:54
@rfay
rfay force-pushed the 20191002_no_dotfiles branch 2 times, most recently from cf9812b to 95baaec Compare October 25, 2019 14:09
@rfay
rfay force-pushed the 20191002_no_dotfiles branch from 95baaec to 2852f99 Compare October 28, 2019 07:31
@rfay
rfay merged commit 70a8b0d into ddev:master Nov 2, 2019
@rfay
rfay deleted the 20191002_no_dotfiles branch November 2, 2019 20:25
rfay added a commit to rfay/ddev that referenced this pull request Jan 15, 2020
…dev#1861)

* Ignore dot files and make command files executable
* Add info about command line endings to docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant