dnaaun / openFraming

Tools for automatic frame discovery and labeling based on topic modeling and deep learning, made widely accessible to researchers from non computational backgrounds.
http://www.openframing.org
9 stars 7 forks source link

error in git pull error: cannot lock ref 'refs/remotes/origin/UI': there is a non-empty directory '.git/refs/remotes/origin/UI' blocking reference 'refs/remotes/origin/UI' #197

Closed monajalal closed 4 years ago

monajalal commented 4 years ago

I did a git pull in master and got this error


(base) mona@goku:~/research/summer2020/openFraming/frontend$ git pull
remote: Enumerating objects: 96, done.
remote: Counting objects: 100% (96/96), done.
remote: Compressing objects: 100% (48/48), done.
remote: Total 96 (delta 57), reused 78 (delta 47), pack-reused 0
Unpacking objects: 100% (96/96), done.
From https://github.com/davidatbu/openFraming
   e179b2d..bd029bf  master                                                             -> origin/master
error: cannot lock ref 'refs/remotes/origin/UI': there is a non-empty directory '.git/refs/remotes/origin/UI' blocking reference 'refs/remotes/origin/UI'
 ! [new branch]      UI                                                                 -> origin/UI  (unable to update local ref)
 * [new branch]      feature/Handle-errors-in-queued-tasks-gracefully                   -> origin/feature/Handle-errors-in-queued-tasks-gracefully
 * [new branch]      feature/Make-unit-testing-use-asynchronous-workers-in-burst-mode   -> origin/feature/Make-unit-testing-use-asynchronous-workers-in-burst-mode
   7ad0f59..35dabca  feature/download-predictions-endpoint                              -> origin/feature/download-predictions-endpoint
 * [new branch]      feature/support-xlsx-and-xls-as-uploadable-spreadsheets-everywhere -> origin/feature/support-xlsx-and-xls-as-uploadable-spreadsheets-everywhere
 * [new branch]      ui-css                                                             -> origin/ui-css
dnaaun commented 4 years ago

Hi Mona, my best guess is that this is because Webstorm messed with your .git directory.

If you have no changes that you would like to preserve in your git repo, then, simply deleting everything(including the .git directory), and cloning the repo again should work.

monajalal commented 4 years ago

I don't think it is related to WebStorm.

Even in the terminal I am getting this error. I never had this problem with Webstorm

(base) mona@goku:~/research/summer2020/openFraming$ git status
On branch master
Your branch is behind 'origin/master' by 17 commits, and can be fast-forwarded.
  (use "git pull" to update your local branch)

nothing to commit, working tree clean
(base) mona@goku:~/research/summer2020/openFraming$ git pull
error: cannot lock ref 'refs/remotes/origin/UI': there is a non-empty directory '.git/refs/remotes/origin/UI' blocking reference 'refs/remotes/origin/UI'
From https://github.com/davidatbu/openFraming
 ! [new branch]      UI         -> origin/UI  (unable to update local ref)
monajalal commented 4 years ago

I did what @davidatbu suggested. Deleted the repo and git pulled it again and the problem was resolved. I am not sure what might have caused it but glad it is resolved.