Closed (works as designed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
other
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
20 Nov 2012 at 22:49 UTC
Updated:
29 Jul 2014 at 21:32 UTC
Jump to comment: Most recent
Comments
Comment #1
stgaito commentedI realize that @kenorb's needs may have changed over the past 7 months, but I stumbled upon this problem as well. After reading the git source code (and re-reading the man page, https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html ), I realized that the problem is almost certainly the fact that the .gitattributes file we were both using was NOT in the top level directory of our projects.
Certainly in my case, I am "braiding" (Ruby gem braid) the drupal core into a subdirectory of my own git project designed to help me track the development of Drupal8. Unfortunately, this means that drupal core's .gitattributes file no longer appears at the git repository's top-level.
Among other impacts, the fact that the [attr]drupalbinary macro is ignored, means that all sorts of *.png files look like they have been modified, when they haven't.
My solution is to move Drupal8's .gitattributes file into my top-level and .gitignore the (lack) of a copy at my braided drupal-core level.
Finally, for the regular git users out there, the Drupal instructions on how to install/configure git, http://drupal.org/documentation/git/configure , are important to understand.
Comment #2
kenorb commentedThank you for the info, make sense.
Comment #3
mikeker commentedFYI: patch in #2166013: Remove macros from .gitattributes to avoid Git errors. should remove the errors.