Skip to content

Commit

Permalink
Don't create .gitattributes in bdep-new --package mode
Browse files Browse the repository at this point in the history
  • Loading branch information
boris-kolpackov committed Feb 29, 2020
1 parent 921d80c commit cfce0a5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bdep/new.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -883,9 +883,9 @@ namespace bdep
//
// See also tests/.gitignore below.
//
if (!sub)
if (vc == vcs::git)
{
if (vc == vcs::git)
if (!sub)
{
// Note: use POSIX directory separators in these files.
//
Expand Down Expand Up @@ -918,7 +918,10 @@ namespace bdep
<< "*.exe.manifest" << endl
<< "*.pc" << endl;
os.close ();
}

if (!pkg && !sub)
{
open (out / ".gitattributes");
os << "# This is a good default: files that are auto-detected by git to be text are" << endl
<< "# converted to the platform-native line ending (LF on Unix, CRLF on Windows)" << endl
Expand Down

0 comments on commit cfce0a5

Please sign in to comment.