Closed pennedav closed 8 years ago
Humm. Interesting.
Try now.
Do you mean 2.9.2.2 of Moodle? In which case the master branch is for M3.0 and you need the MOODLE_29 branch instead.
Tested with git 2.6.4 and the behavior persists. Originally I was testing with git 1.9.5.
This is all on Mac OS X. Also tested on Ubuntu 14:
david: ~$ git clone https://github.com/gjb2048/moodle-format_topcoll.git src
Cloning into 'src'...
remote: Counting objects: 4601, done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 4601 (delta 0), reused 0 (delta 0), pack-reused 4596
Receiving objects: 100% (4601/4601), 2.08 MiB | 0 bytes/s, done.
Resolving deltas: 100% (2584/2584), done.
Checking connectivity... done.
david: ~$ cd src
david: src$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: .travis.yml
modified: COPYING.txt
no changes added to commit (use "git add" and/or "git commit -a")
david: src$ git checkout -b MOODLE_29 origin/MOODLE_29
error: Your local changes to the following files would be overwritten by checkout:
.travis.yml
Please, commit your changes or stash them before you can switch branches.
Aborting
david: src$
The .gitattributes notice is gone now, but the .travis.yml and COPYING.txt modifications are still there.
humm
Ok, please try again. All to do with working on Windows, needing to have only LF's for PHPUnit to work properly with core.autocrlf unset.
Works now! :)
There's a BOM at the beginning of .gitattributes which causes git to display the following notice when checking out the repository:
Additionally, this may be causing issues with COPYING.txt and .travis.yml. Immediately after cloning the repo those two files are listed as modified--the only changes being line endings. This makes it impossible, for example, to checkout the V2.9.2.2 tag without first getting rid of the modified status of COPYING.txt and .travis.yml. (git complains that it would have to overwrite the local modifications.) A git checkout on those files does not seem to fix the issue either.