hg-git sets executable attribute on non-executable files in its integral git clone
Perhaps more of an oddity than a critical issue, but, having cloned a git repository into hg, if I inspect the integral (bare) git clone, I see:
$ ls -l .hg/git
total 32
drwxr-xr-x 2 keith keith 4096 Jan 13 13:01 branches
-rwxr-xr-x 1 keith keith 91 Jan 13 13:01 config
-rwxr-xr-x 1 keith keith 18 Jan 13 13:01 description
-rwxr-xr-x 1 keith keith 26 Apr 16 21:08 HEAD
drwxr-xr-x 2 keith keith 4096 Jan 13 13:01 hooks
drwxr-xr-x 2 keith keith 4096 Jan 13 13:01 info
drwxr-xr-x 183 keith keith 4096 May 28 23:37 objects
drwxr-xr-x 5 keith keith 4096 Jan 13 13:01 refs
The three files, config
, description
, and HEAD
are all ASCII text, but none have any executable content; however, all appear as executable, for everyone.
The corresponding directory listing, for a free-standing bare git clone of the same upstream repository, looks like:
$ ls -l
total 36
drwxr-xr-x 2 keith keith 4096 May 31 21:25 branches
-rw-r--r-- 1 keith keith 149 May 31 21:25 config
-rw-r--r-- 1 keith keith 73 May 31 21:25 description
-rw-r--r-- 1 keith keith 26 May 31 21:25 HEAD
drwxr-xr-x 2 keith keith 4096 May 31 21:25 hooks
drwxr-xr-x 2 keith keith 4096 May 31 21:25 info
drwxr-xr-x 4 keith keith 4096 May 31 21:25 objects
-rw-r--r-- 1 keith keith 2315 May 31 21:25 packed-refs
drwxr-xr-x 4 keith keith 4096 May 31 21:25 refs
Ignoring the extra packed-refs
file, (which isn't pertinent), this matches the listing from within the hg clone, except that the executable attribute is not assigned to any of config
, description
, or HEAD
.