Add .gitattributes during repo initialization (#352)
Make `blackbox_initialize` include `.blackbox/.gitattributes` when creating a new repository. Closes #351 Signed-off-by: Joe Block <jpb@unixorn.net>
This commit is contained in:
@@ -44,7 +44,7 @@ if [[ $VCS_TYPE = "git" ]]; then
|
|||||||
grep -qF "$LINE" "$FILE" || echo "$LINE" >> "$FILE"
|
grep -qF "$LINE" "$FILE" || echo "$LINE" >> "$FILE"
|
||||||
LINE='blackbox-files.txt text eol=lf'
|
LINE='blackbox-files.txt text eol=lf'
|
||||||
grep -qF "$LINE" "$FILE" || echo "$LINE" >> "$FILE"
|
grep -qF "$LINE" "$FILE" || echo "$LINE" >> "$FILE"
|
||||||
|
vcs_add "$FILE"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $VCS_TYPE = "svn" ]]; then
|
if [[ $VCS_TYPE = "svn" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user