Closed akelge closed 2 years ago
@akelge this seems to exist though: .git/modules/roles/rebase-merge
maybe a lingering folder somehow in that submodule?
~/Src/ifson/ansible master ≡
❯ find . -name rebase-merge
~/Src/ifson/ansible master ≡
❯
nothing comes up; more
~/Src/ifson/ansible master ≡
❯ ls -l .git/modules/roles/rebase-merge
ls: .git/modules/roles/rebase-merge: No such file or directory
~/Src/ifson/ansible master ≡
❯
Finally
❯ ls -l .git/modules/roles/
total 64
-rw-rw-r-- 1 andre staff 51 Dec 15 17:39 COMMIT_EDITMSG
-rw-rw-r-- 1 andre staff 0 Dec 23 08:44 FETCH_HEAD
-rw-rw-r-- 1 andre staff 23 Dec 2 15:14 HEAD
-rw-rw-r-- 1 andre staff 343 Dec 2 15:17 config
-rw-rw-r-- 1 andre staff 73 Oct 24 09:47 description
drwxrwxr-x 15 andre staff 480 Oct 24 09:47 hooks/
-rw-rw-r-- 1 andre staff 10040 Dec 21 07:16 index
drwxrwxr-x 3 andre staff 96 Oct 24 09:47 info/
drwxrwxr-x 4 andre staff 128 Oct 24 09:47 logs/
drwxrwxr-x 29 andre staff 928 Dec 23 07:50 objects/
-rw-rw-r-- 1 andre staff 114 Oct 24 09:47 packed-refs
drwxrwxr-x 5 andre staff 160 Oct 24 09:47 refs/
Also in the debug log
2021/12/23 08:07:20 error: getFileContent
open ../.git/modules/roles/rebase-merge/msgnum: not a directory
2021/12/23 08:07:20 getFileContent duration: 9.458µs, args: ../.git/modules/roles/rebase-merge/msgnum
2021/12/23 08:07:20 error: getFileContent
open ../.git/modules/roles/rebase-merge/end: not a directory
Dunno where omp finds that file; let me add that this happens in all subfolders of submodules, not in the main submodule folder, just in subfolders of the main submodule folder
@akelge can you update to the latest version? There were some changes done to the way we fetch the root folder.
I did, with brew, now I am running 6.39.0, but the bug is still there, sorry.
BTW, can I suggest you to add head
to brew formula, to allow me (and others) to use HEAD?
Here is the debug
[1mVersion:[0m 6.39.0
[1mSegments:[0m
ConsoleTitle(true) - 0 ms -
session(true) - 0 ms - %{[38;2;195;134;241m%}%{[0m%}%{[48;2;195;134;241m[38;2;255;255;255m%} %{[0m%}%{[48;2;195;134;241m[38;2;255;255;255m%}andre@dragon%{[0m%}%{[48;2;195;134;241m[38;2;255;255;255m%} %{[0m%}%{[38;2;195;134;241m%}%{[0m%}
path(true) - 0 ms - %{[38;2;255;71;156;49m[7m%}%{[0m%}%{[48;2;255;71;156m[38;2;255;255;255m%} %{[0m%}%{[48;2;255;71;156m[38;2;255;255;255m%}fail2ban%{[0m%}%{[48;2;255;71;156m[38;2;255;255;255m%} %{[0m%}%{[38;2;255;71;156m%}%{[0m%}
git(true) - 9 ms - %{[48;2;255;251;56m[38;2;255;71;156m%}%{[0m%}%{[48;2;255;251;56m[38;2;25;53;73m%} %{[0m%}%{[48;2;255;251;56m[38;2;25;53;73m%}fatal: No names found, cannot describe anything.
%{[0m%}%{[48;2;255;251;56m[38;2;25;53;73m%} %{[0m%}%{[38;2;255;251;56m%}%{[0m%}
battery(true) - 16 ms - %{[48;2;255;87;34m[38;2;255;251;56m%}%{[0m%}%{[48;2;255;87;34m[38;2;25;53;73m%} %{[0m%}%{[48;2;255;87;34m[38;2;25;53;73m%}90%{[0m%}%{[48;2;255;87;34m[38;2;25;53;73m%} %{[0m%}%{[38;2;255;87;34m%}%{[0m%}
node(false) - 0 ms -
shell(true) - 0 ms - %{[48;2;0;119;194m[38;2;255;87;34m%}%{[0m%}%{[48;2;0;119;194m[38;2;255;255;255m%} ﲵ %{[0m%}%{[48;2;0;119;194m[38;2;255;255;255m%}zsh%{[0m%}%{[48;2;0;119;194m[38;2;255;255;255m%} %{[0m%}%{[38;2;0;119;194m%}%{[0m%}
root(false) - 0 ms -
text(true) - 0 ms - %{[48;2;255;255;255m[38;2;0;119;194m%}%{[0m%}%{[48;2;255;255;255m[38;2;17;17;17m%} %{[0m%}%{[48;2;255;255;255m[38;2;17;17;17m%}NO CONFIG%{[0m%}%{[48;2;255;255;255m[38;2;17;17;17m%} %{[0m%}%{[38;2;255;255;255m%}%{[0m%}
exit(true) - 0 ms - %{[38;2;255;255;255m%}%{[0m%}%{[38;2;46;149;153;49m[7m%}%{[0m%}%{[48;2;46;149;153m[38;2;255;255;255m%} %{[0m%}%{[48;2;46;149;153m[38;2;255;255;255m%} %{[0m%}%{[38;2;46;149;153m%}%{[0m%}
[1mRun duration:[0m 28.184875ms
[1mLogs:[0m
2021/12/23 19:56:09 debug: getenv
2021/12/23 19:56:09 getenv duration: 7.792µs, args: XDG_CACHE_HOME
2021/12/23 19:56:09 getCachePath duration: 80.875µs, args:
2021/12/23 19:56:09 getArgs duration: 83ns, args:
2021/12/23 19:56:09 getArgs duration: 83ns, args:
2021/12/23 19:56:09 getShellName duration: 2.753208ms, args:
2021/12/23 19:56:09 debug: getenv
2021/12/23 19:56:09 getenv duration: 2.209µs, args: OMP_CACHE_DISABLED
2021/12/23 19:56:09 isRunningAsRoot duration: 10.917µs, args:
2021/12/23 19:56:09 getcwd duration: 61.583µs, args:
2021/12/23 19:56:09 getPathSeperator duration: 42ns, args:
2021/12/23 19:56:09 getPathSeperator duration: 41ns, args:
2021/12/23 19:56:09 getPathSeperator duration: 41ns, args:
2021/12/23 19:56:09 getPathSeperator duration: 42ns, args:
2021/12/23 19:56:09 getPathSeperator duration: 42ns, args:
2021/12/23 19:56:09 getPathSeperator duration: 42ns, args:
2021/12/23 19:56:09 getPathSeperator duration: 84ns, args:
2021/12/23 19:56:09 getPathSeperator duration: 41ns, args:
2021/12/23 19:56:09 getPathSeperator duration: 42ns, args:
2021/12/23 19:56:09 getPathSeperator duration: 42ns, args:
2021/12/23 19:56:09 getShellName duration: 83ns, args:
2021/12/23 19:56:09 getCurrentUser duration: 208ns, args:
2021/12/23 19:56:09 getHostName duration: 6.25µs, args:
2021/12/23 19:56:09 getcwd duration: 125ns, args:
2021/12/23 19:56:09 debug: getenv
2021/12/23 19:56:09 getenv duration: 1.541µs, args: SSH_CONNECTION
2021/12/23 19:56:09 debug: getenv
2021/12/23 19:56:09 getenv duration: 1.167µs, args: SSH_CLIENT
2021/12/23 19:56:09 getCurrentUser duration: 209ns, args:
2021/12/23 19:56:09 getRuntimeGOOS duration: 84ns, args:
2021/12/23 19:56:09 getHostName duration: 4.75µs, args:
2021/12/23 19:56:09 debug: getenv
2021/12/23 19:56:09 getenv duration: 1.083µs, args: POSH_SESSION_DEFAULT_USER
2021/12/23 19:56:09 getcwd duration: 84ns, args:
2021/12/23 19:56:09 getcwd duration: 83ns, args:
2021/12/23 19:56:09 getArgs duration: 167ns, args:
2021/12/23 19:56:09 getcwd duration: 42ns, args:
2021/12/23 19:56:09 getRuntimeGOOS duration: 42ns, args:
2021/12/23 19:56:09 getRuntimeGOOS duration: 42ns, args:
2021/12/23 19:56:09 getPathSeperator duration: 84ns, args:
2021/12/23 19:56:09 getPathSeperator duration: 42ns, args:
2021/12/23 19:56:09 getPathSeperator duration: 42ns, args:
2021/12/23 19:56:09 getPathSeperator duration: 42ns, args:
2021/12/23 19:56:09 getPathSeperator duration: 84ns, args:
2021/12/23 19:56:09 getPathSeperator duration: 42ns, args:
2021/12/23 19:56:09 getPathSeperator duration: 42ns, args:
2021/12/23 19:56:09 getPathSeperator duration: 42ns, args:
2021/12/23 19:56:09 getPathSeperator duration: 41ns, args:
2021/12/23 19:56:09 getPathSeperator duration: 42ns, args:
2021/12/23 19:56:09 getPathSeperator duration: 42ns, args:
2021/12/23 19:56:09 getRuntimeGOOS duration: 83ns, args:
2021/12/23 19:56:09 stackCount duration: 41ns, args:
2021/12/23 19:56:09 getcwd duration: 42ns, args:
2021/12/23 19:56:09 debug: getenv
2021/12/23 19:56:09 getenv duration: 1.333µs, args: WSL_DISTRO_NAME
2021/12/23 19:56:09 isWsl duration: 3.792µs, args:
2021/12/23 19:56:09 getRuntimeGOOS duration: 83ns, args:
2021/12/23 19:56:09 hasCommand duration: 41.792µs, args: git
2021/12/23 19:56:09 getcwd duration: 84ns, args:
2021/12/23 19:56:09 hasParentFilePath duration: 15µs, args: .git
2021/12/23 19:56:09 getFileContent duration: 29.25µs, args: /Users/andre/Src/ifson/ansible/roles/.git
2021/12/23 19:56:09 error: getFileContent
open ../.git/modules/roles/gitdir: not a directory
2021/12/23 19:56:09 getFileContent duration: 10.459µs, args: ../.git/modules/roles/gitdir
2021/12/23 19:56:09 error: getFileContent
open ../.git/modules/roles/HEAD: not a directory
2021/12/23 19:56:09 getFileContent duration: 3.292µs, args: ../.git/modules/roles/HEAD
2021/12/23 19:56:09 error: runCommand
cmd.Start() failed with 'fatal: No names found, cannot describe anything.
'
2021/12/23 19:56:09 runCommand duration: 9.421625ms, args: git -C --no-optional-locks -c core.quotepath=false -c color.status=false describe --tags --exact-match
2021/12/23 19:56:09 error: getFileContent
open .././logs/refs/stash: no such file or directory
2021/12/23 19:56:09 getFileContent duration: 7.208µs, args: .././logs/refs/stash
2021/12/23 19:56:09 getcwd duration: 83ns, args:
2021/12/23 19:56:09 getBatteryInfo duration: 16.668584ms, args:
2021/12/23 19:56:09 getcwd duration: 83ns, args:
2021/12/23 19:56:09 getcwd duration: 42ns, args:
2021/12/23 19:56:09 getcwd duration: 0s, args:
2021/12/23 19:56:09 getPathSeperator duration: 84ns, args:
2021/12/23 19:56:09 hasFiles duration: 125.042µs, args: *.js
2021/12/23 19:56:09 getcwd duration: 42ns, args:
2021/12/23 19:56:09 getPathSeperator duration: 42ns, args:
2021/12/23 19:56:09 hasFiles duration: 39.583µs, args: *.ts
2021/12/23 19:56:09 getcwd duration: 41ns, args:
2021/12/23 19:56:09 getPathSeperator duration: 41ns, args:
2021/12/23 19:56:09 hasFiles duration: 7.917µs, args: package.json
2021/12/23 19:56:09 getcwd duration: 42ns, args:
2021/12/23 19:56:09 getPathSeperator duration: 42ns, args:
2021/12/23 19:56:09 hasFiles duration: 6.708µs, args: .nvmrc
2021/12/23 19:56:09 getcwd duration: 42ns, args:
2021/12/23 19:56:09 getPathSeperator duration: 41ns, args:
2021/12/23 19:56:09 hasFiles duration: 6.375µs, args: pnpm-workspace.yaml
2021/12/23 19:56:09 getcwd duration: 0s, args:
2021/12/23 19:56:09 getPathSeperator duration: 42ns, args:
2021/12/23 19:56:09 hasFiles duration: 6.166µs, args: .pnpmfile.cjs
2021/12/23 19:56:09 getcwd duration: 41ns, args:
2021/12/23 19:56:09 getPathSeperator duration: 41ns, args:
2021/12/23 19:56:09 hasFiles duration: 5.792µs, args: .npmrc
2021/12/23 19:56:09 getcwd duration: 41ns, args:
2021/12/23 19:56:09 getShellName duration: 375ns, args:
2021/12/23 19:56:09 getcwd duration: 42ns, args:
2021/12/23 19:56:09 isRunningAsRoot duration: 500ns, args:
2021/12/23 19:56:09 getcwd duration: 42ns, args:
2021/12/23 19:56:09 isRunningAsRoot duration: 250ns, args:
2021/12/23 19:56:09 getcwd duration: 41ns, args:
2021/12/23 19:56:09 getPathSeperator duration: 42ns, args:
2021/12/23 19:56:09 getPathSeperator duration: 42ns, args:
2021/12/23 19:56:09 getPathSeperator duration: 41ns, args:
2021/12/23 19:56:09 getPathSeperator duration: 41ns, args:
2021/12/23 19:56:09 getPathSeperator duration: 42ns, args:
2021/12/23 19:56:09 getPathSeperator duration: 41ns, args:
2021/12/23 19:56:09 getPathSeperator duration: 42ns, args:
2021/12/23 19:56:09 getPathSeperator duration: 42ns, args:
2021/12/23 19:56:09 getPathSeperator duration: 42ns, args:
2021/12/23 19:56:09 getPathSeperator duration: 41ns, args:
2021/12/23 19:56:09 getShellName duration: 42ns, args:
2021/12/23 19:56:09 getCurrentUser duration: 167ns, args:
2021/12/23 19:56:09 getHostName duration: 6.917µs, args:
2021/12/23 19:56:09 getcwd duration: 83ns, args:
2021/12/23 19:56:09 lastErrorCode duration: 42ns, args:
BTW, can I suggest you to add
head
to brew formula, to allow me (and others) to use HEAD?
@akelge what do you mean with that?
@akelge BTW, in the log you just provided there's a different issue, right?
BTW, can I suggest you to add
head
to brew formula, to allow me (and others) to use HEAD?@akelge what do you mean with that?
if you add an head
with the proper url from github, you can install the HEAD version on homebrew, I will work on that and submit a PR next week.
@akelge BTW, in the log you just provided there's a different issue, right?
To be honest I did not check thoroughly the debug log, but the result is the same as before, sorry I can't provide more info
I did some tests yesterday with a repo containing a submodule and I could not reproduce your issue.
Is your repo public? Or can you point us to a github repo that would match yours?
I will set up something similar on GitHub next week. Happy Holidays everyone
Il ven 24 dic 2021, 07:31 Laurent Nullens @.***> ha scritto:
I did some tests yesterday with a repo containing a submodule and I could not reproduce your issue. Is your repo public? Or can you point us to a github repo that would match yours?
— Reply to this email directly, view it on GitHub https://github.com/JanDeDobbeleer/oh-my-posh/issues/1489#issuecomment-1000680204, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABXGU6SRZHKBGOBCRQ3DDXDUSQHVBANCNFSM5KUEHRPA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID: @.***>
I did some tests yesterday with a repo containing a submodule and I could not reproduce your issue. Is your repo public? Or can you point us to a github repo that would match yours?
Here you have https://github.com/akelge/test-repo
Of course you have to git clone --recurse
, the if you cd test-submodule/inner-folder
you will see
~/Src/ifson/testrepo/test-repo/test-submodule/inner-folder onto (/) at main ≡
really nice! it fails as expected... let's check it 😄 I get it: since the .git links to the parent folder .git, it fails in the worktree handling but it's not a worktree...
looks better:
pr is on the way
@akelge looks good on both macos and windows on my side. The status of the submodule should just work like any simple git repo.
🎄
Cool, thanks a lot
Il ven 24 dic 2021, 16:21 Laurent Nullens @.***> ha scritto:
@akelge https://github.com/akelge looks good on both macos and windows on my side. The status of the submodule should just work like any simple git repo.
— Reply to this email directly, view it on GitHub https://github.com/JanDeDobbeleer/oh-my-posh/issues/1489#issuecomment-1000872986, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABXGU6QWGFOJID7P7L7PHNDUSSFV3ANCNFSM5KUEHRPA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID: @.***>
@akelge if you can confirm, please close the issue and merry Christmas!
I will, dunno when, family gathering on going 😊
Il ven 24 dic 2021, 17:28 Jan De Dobbeleer @.***> ha scritto:
@akelge https://github.com/akelge if you can confirm, please close the issue and merry Christmas!
— Reply to this email directly, view it on GitHub https://github.com/JanDeDobbeleer/oh-my-posh/issues/1489#issuecomment-1000892667, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABXGU6WPLHCBEEAXCMCJZPLUSSNRPANCNFSM5KUEHRPA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID: @.***>
Confirmed working now :) thanks a lot
~/Src/ifson/testrepo/test-repo/test-submodule/inner-folder main ≡
❯ ll
total 0
-rw-rw-r-- 1 andre staff 0 Dec 24 13:56 you-should-have-been-bitten-by-the-bug
This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. If you have found a problem that seems similar, please open a discussion first, complete the body with all the details necessary to reproduce, and mention this issue as reference.
Code of Conduct
What happened?
If I cd into a folder in a git submodule a weird git segment shows up
onto (/) at master ≡
I checked the code and it seems that segment is generated by this piece of code
but there is no
rebase-merge
folder or file anywhere in that git tree.Theme
pure
What OS are you seeing the problem on?
macOS
Which shell are you using?
zsh
Log output