{"thread":{"id":"46341","subject":"Bug - Dirty submodule differences between OSX/Ubuntu","startedAt":"2017-07-09T20:43:13Z","lastAt":"2017-07-11T00:05:18Z","messageCount":3,"participants":["Steve Kallestad","brian m. carlson","Stefan Beller"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"324045","messageId":"CALs7=Px4nqr6LhOTEQY80WbahRRuaKut-Us5tP7Puda0kb5EdQ@mail.gmail.com","threadId":"46341","inReplyTo":null,"subject":"Bug - Dirty submodule differences between OSX/Ubuntu","fromName":"Steve Kallestad","fromEmail":"kallestad@gmail.com","sentAt":"2017-07-09T20:42:47Z","receivedAt":"2017-07-09T20:43:13Z","isPatch":false,"sender":{"key":"kallestad@gmail.com","avatar":null},"body":"Referencing: https://gitlab.com/python-mode-devs/python-mode/issues/36\n\nI reported a bug because when adding the python-mode repo as a\nsubmodule in my project, it shows as \"dirty\".\n\nThe maintainers of that module reported back that my bug cannot be reproduced.\n\nI upgraded my local install to 2.13.2 on OSX El Capitan.\n\nI tried to re-create the issue, and did so successfully.\n\nI created a docker container using ubuntu:latest as the base,\ninstalled git and tried to recreate the issue.\n\ngit on ubuntu does not show the submodule as dirty.\n\nI upgraded ubuntu's git to 2.13.2 and git still does not show the\nsubmodule as dirty.\n\nHere is how to reproduce this problem:\n\nmkdir test\ncd test\ngit init\ngit submodule add https://gitlab.com/python-mode-devs/python-mode.git\npython-mode.el\ngit commit -m 'initial commit'\ngit status\n\nOn ubuntu:\nOn branch master\nnothing to commit, working tree clean\n\nOn OSX:\nOn branch master\nChanges not staged for commit:\n  (use \"git add <file>...\" to update what will be committed)\n  (use \"git checkout -- <file>...\" to discard changes in working directory)\n  (commit or discard the untracked or modified content in submodules)\n\n    modified:   python-mode.el (modified content)\n\nno changes added to commit (use \"git add\" and/or \"git commit -a\")\n\n---\nchange into the submodule directory and run status\ncd python-mode.el\ngit status\n\nOn ubuntu:\nOn branch master\nYour branch is up-to-date with 'origin/master'.\nnothing to commit, working directory clean\n\nOn OSX:\nOn branch master\nYour branch is up-to-date with 'origin/master'.\nChanges not staged for commit:\n  (use \"git add/rm <file>...\" to update what will be committed)\n  (use \"git checkout -- <file>...\" to discard changes in working directory)\n\n    deleted:    EXTENSIONS\n\nno changes added to commit (use \"git add\" and/or \"git commit -a\")\n\n---\nThis is a bug because the upstream repo maintainers cannot fix the\nproblem if they cannot see it.  dirty/clean reporting  should be the\nconsistent across all operating systems.\n"},{"id":"324138","messageId":"20170710235321.m3xfx2lfsvyirzme@genre.crustytoothpaste.net","threadId":"46341","inReplyTo":"CALs7=Px4nqr6LhOTEQY80WbahRRuaKut-Us5tP7Puda0kb5EdQ@mail.gmail.com","subject":"Re: Bug - Dirty submodule differences between OSX/Ubuntu","fromName":"brian m. carlson","fromEmail":"sandals@crustytoothpaste.net","sentAt":"2017-07-10T23:53:21Z","receivedAt":"2017-07-10T23:53:31Z","isPatch":false,"sender":{"key":"sandals@crustytoothpaste.net","avatar":"https://avatars.githubusercontent.com/u/497054?v=4"},"body":"On Sun, Jul 09, 2017 at 01:42:47PM -0700, Steve Kallestad wrote:\n> change into the submodule directory and run status\n> cd python-mode.el\n> git status\n> \n> On ubuntu:\n> On branch master\n> Your branch is up-to-date with 'origin/master'.\n> nothing to commit, working directory clean\n> \n> On OSX:\n> On branch master\n> Your branch is up-to-date with 'origin/master'.\n> Changes not staged for commit:\n>   (use \"git add/rm <file>...\" to update what will be committed)\n>   (use \"git checkout -- <file>...\" to discard changes in working directory)\n> \n>     deleted:    EXTENSIONS\n> \n> no changes added to commit (use \"git add\" and/or \"git commit -a\")\n\nThis is an artifact of using a case-insensitive file system.  There is a\ndirectory called \"extensions\" and so git has not checked out the file\n\"EXTENSIONS\", as there's already a file system object.  It therefore\nsees it as deleted, since git tracks only files (and not really\ndirectories, but trees of files).\n\nThis repository is always going to show as modified on a\ncase-insensitive file system.  You can either ask the maintainers to\nchange it, or reformat your disk with a case-sensitive file system.\n-- \nbrian m. carlson / brian with sandals: Houston, Texas, US\nhttps://www.crustytoothpaste.net/~bmc | My opinion only\nOpenPGP: https://keybase.io/bk2204\n"},{"id":"324139","messageId":"CAGZ79kYNL7-TPkn2F_i3g5kO4C+1VeZh8ERigA4LTqck1ktLzw@mail.gmail.com","threadId":"46341","inReplyTo":"20170710235321.m3xfx2lfsvyirzme@genre.crustytoothpaste.net","subject":"Re: Bug - Dirty submodule differences between OSX/Ubuntu","fromName":"Stefan Beller","fromEmail":"sbeller@google.com","sentAt":"2017-07-11T00:05:12Z","receivedAt":"2017-07-11T00:05:18Z","isPatch":false,"sender":{"key":"stefanbeller@gmail.com","avatar":"https://avatars.githubusercontent.com/u/455868?v=4"},"body":"On Mon, Jul 10, 2017 at 4:53 PM, brian m. carlson\n<sandals@crustytoothpaste.net> wrote:\n> On Sun, Jul 09, 2017 at 01:42:47PM -0700, Steve Kallestad wrote:\n>> change into the submodule directory and run status\n>> cd python-mode.el\n>> git status\n>>\n>> On ubuntu:\n>> On branch master\n>> Your branch is up-to-date with 'origin/master'.\n>> nothing to commit, working directory clean\n>>\n>> On OSX:\n>> On branch master\n>> Your branch is up-to-date with 'origin/master'.\n>> Changes not staged for commit:\n>>   (use \"git add/rm <file>...\" to update what will be committed)\n>>   (use \"git checkout -- <file>...\" to discard changes in working directory)\n>>\n>>     deleted:    EXTENSIONS\n>>\n>> no changes added to commit (use \"git add\" and/or \"git commit -a\")\n>\n> This is an artifact of using a case-insensitive file system.  There is a\n> directory called \"extensions\" and so git has not checked out the file\n> \"EXTENSIONS\", as there's already a file system object.  It therefore\n> sees it as deleted, since git tracks only files (and not really\n> directories, but trees of files).\n>\n> This repository is always going to show as modified on a\n> case-insensitive file system.  You can either ask the maintainers to\n> change it, or reformat your disk with a case-sensitive file system.\n\nWhile this is certainly not the answer Steve hoped for, we should\nsee if there are any implications by the user of submodules, i.e.\nis this behavior reproducable without submodules? (In case it is not,\ndo we want to have the same checks in place for gitlinks as for\ndirectories?)\n"}]}