Skip to content
Snippets Groups Projects
Commit aaf1278f authored by Paul Walker's avatar Paul Walker Committed by Jérôme Reybert
Browse files

check_repo() can't use 'count' for a variable name.

Even though it's not prefixed with v:, Vim still regards it as attempting to
overwrite it's internal (read-only) variable count.

This is probably only hit when trying to use Vimagit to commit items to a
freshly init'ed repo, so most people wouldn't encounter it.
parent bf7b16e9
No related branches found
No related tags found
No related merge requests found
...@@ -312,8 +312,8 @@ function! magit#git#check_repo() ...@@ -312,8 +312,8 @@ function! magit#git#check_repo()
try try
let head_br=magit#git#get_branch_name("HEAD") let head_br=magit#git#get_branch_name("HEAD")
catch 'shell_error' catch 'shell_error'
let count = magit#git#count_object()['count'] let object_count = magit#git#count_object()['count']
if ( count != 0 ) if ( object_count != 0 )
return 1 return 1
endif endif
endtry endtry
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment