Git reporting phantom changes in umbraco 9 project
hello - most times when we build + run umbraco 9 in our development environment, git reports file modifications to certain Umbraco Forms and USync files when they haven't actually changed. Probably some sort of CR / LF / special character issue it thinks has changed, but the file comparison doesn't report what is different. Anyone else get this and know what the issue is? would be great to hear how you fixed it :) thanks
I've seen that with Umbraco Models when they are regenerated. GIT Reports changes but nothing is shown in the comparison. Could be CR/LF changes but I never bothered to look more into to as when I stage the files, they just disappear and don't get committed anyway.
Can you be a bit more specific about which files they are? Are they the ones in App_Plugins?
If they are, it is likely because dotnet core build/publish will often regrab those files from the nuget packages, overriding what you have there already even though the files are identical.
With the way dotnet core works, you "shouldn't" need to include the App_Plugin files from packages in your repo, only custom plugins you've created.
Hi Nik - yes files under app_plugins, sorry yes I can post a screenshot of them when back at work tomorrow. But yes a git ignore rule is probably a smart idea, thanks! I am still curious what it thinks has changed when it’s just the same file it’s reinstating
I suspect it could be on the last modified date or something similar which is why if you staged the files they wouldn't all disappear as not having changed as the true delta isn't compared until you stage the files. But that is a guess.
Git reporting phantom changes in umbraco 9 project
hello - most times when we build + run umbraco 9 in our development environment, git reports file modifications to certain Umbraco Forms and USync files when they haven't actually changed. Probably some sort of CR / LF / special character issue it thinks has changed, but the file comparison doesn't report what is different. Anyone else get this and know what the issue is? would be great to hear how you fixed it :) thanks
Umbraco 9
Visual Studio 2022
Git/Github
I've seen that with Umbraco Models when they are regenerated. GIT Reports changes but nothing is shown in the comparison. Could be CR/LF changes but I never bothered to look more into to as when I stage the files, they just disappear and don't get committed anyway.
Hey Andrew,
Can you be a bit more specific about which files they are? Are they the ones in App_Plugins?
If they are, it is likely because dotnet core build/publish will often regrab those files from the nuget packages, overriding what you have there already even though the files are identical.
With the way dotnet core works, you "shouldn't" need to include the App_Plugin files from packages in your repo, only custom plugins you've created.
Thanks
Nik
Hi Nik - yes files under app_plugins, sorry yes I can post a screenshot of them when back at work tomorrow. But yes a git ignore rule is probably a smart idea, thanks! I am still curious what it thinks has changed when it’s just the same file it’s reinstating
I suspect it could be on the last modified date or something similar which is why if you staged the files they wouldn't all disappear as not having changed as the true delta isn't compared until you stage the files. But that is a guess.
is working on a reply...