SourceTreeの脆弱性が見つかったのでアップデートを行うことに
Sourcetree Security Advisory 2018-01-24
SourceTreeのアップデートを行い、内臓GitのバージョンもSourceTreeから上げようとしたところ以下のエラーがでて更新ができず戸惑う
エラー全文
7-Zip [32] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
Scanning the drive for archives:
1 file, 37727272 bytes (36 MiB)
Extracting archive: C:\Users\****\AppData\Local\Atlassian\SourceTree\PortableGit.7z
WARNING:
C:\Users\****\AppData\Local\Atlassian\SourceTree\PortableGit.7z
Can not open the file as [7z] archive
The file is open as [PE] archive
--
Path = C:\Users\****\AppData\Local\Atlassian\SourceTree\PortableGit.7z
Open WARNING: Can not open the file as [7z] archive
Type = PE
Physical Size = 37727272
CPU = x86
Characteristics = Executable 32-bit
Created = 2017-04-06 07:33:08
Headers Size = 1024
Checksum = 37781750
Name = 7zS.sfx.exe
Image Size = 503808
Section Alignment = 4096
File Alignment = 512
Code Size = 382976
Initialized Data Size = 106496
Uninitialized Data Size = 0
Linker Version = 14.10
OS Version = 6.0
Image Version = 0.0
Subsystem Version = 6.0
Subsystem = Windows GUI
DLL Characteristics = Relocated NX-Compatible TerminalServerAware
Stack Reserve = 1048576
Stack Commit = 4096
Heap Reserve = 1048576
Heap Commit = 4096
Image Base = 4194304
Comment = FileVersion: 16.4.0.0
FileVersion: 16.04
ProductVersion: 16.4.0.0
ProductVersion: 16.04
CompanyName: Igor Pavlov
FileDescription: 7z Setup SFX
InternalName: 7zS.sfx
LegalCopyright: Copyright (c) 1999-2016 Igor Pavlov
OriginalFilename: 7zS.sfx.exe
ProductName: 7-Zip
----
Path = [0]
Size = 37242768
Packed Size = 37242768
Virtual Size = 37242768
Offset = 477184
--
Path = [0]
Type = 7z
Offset = 515
Physical Size = 37242246
Tail Size = 7
Headers Size = 61691
Method = LZMA:27 BCJ2
Solid = +
Blocks = 2
Sub items Errors: 6
Archives with Errors: 1
Sub items Errors: 6
解決方法
git_local
フォルダを消すことで解決
- PC再起動
C:\Users\ユーザー名\AppData\Local\Atlassian\SourceTree\git_local
をフォルダごと削除
3. SourceTree起動
4. オプションのGitから内臓Gitを更新