From mboxrd@z Thu Jan 1 00:00:00 1970 From: "numbchild@gmail.com" Subject: org-git-link 's open function org-git-open does not work correctly Date: Sat, 24 Jun 2017 09:44:05 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="f403045f581a306cd20552aadc3d" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51653) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dOa7s-0000Ne-1w for emacs-orgmode@gnu.org; Fri, 23 Jun 2017 21:44:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dOa7q-0003vS-UK for emacs-orgmode@gnu.org; Fri, 23 Jun 2017 21:44:40 -0400 Received: from mail-wr0-x22e.google.com ([2a00:1450:400c:c0c::22e]:32982) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dOa7q-0003vI-Ml for emacs-orgmode@gnu.org; Fri, 23 Jun 2017 21:44:38 -0400 Received: by mail-wr0-x22e.google.com with SMTP id r103so86217245wrb.0 for ; Fri, 23 Jun 2017 18:44:36 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Org-mode --f403045f581a306cd20552aadc3d Content-Type: text/plain; charset="UTF-8" When I `org-store-link` in a local git repository file buffer, I got this link: [[git:~/.emacs.d/init/org-mode/init-my-org-hyperlink.el::develop@ {2017-06-24}::202][git:~/.emacs.d/init/org-mode/init-my-org-hyperlink.el::develop@ {2017-06-24}::202]] Then I insert link into Org-mode buffer. But when I open link with `[C-c C-o]`, it open git revision: ``` "/tmp/org-git-8fd5f4cf5d17479ead7b4329024860e84b6f2453/init-my-org-hyperlink.el" ``` This is not correct. My current `HEAD` (command: `git show HEAD`) is: ``` commit 3cc7ee1792a7d7b8ddf51897f7b968af36bae745 (HEAD -> develop) ``` [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ --f403045f581a306cd20552aadc3d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
When I `org-store-link` in a local git reposit= ory file buffer, I got this link:

[[git:~/.emacs.d= /init/org-mode/init-my-org-hyperlink.el::develop@{2017-06-24}::202][git:~/.= emacs.d/init/org-mode/init-my-org-hyperlink.el::develop@{2017-06-24}::202]]=

Then I insert link into Org-mode buffer.
=
But when I open link with `[C-c C-o]`, it open= git revision:
```
"/tmp/org-git-8fd5f4cf5d17479ead7b4329024860e84b6f2453/ini= t-my-org-hyperlink.el"
```
=
This is not correct.
My current `HEAD` (command: `git show HEAD`) is:
```
commit 3cc7ee1792a= 7d7b8ddf51897f7b968af36bae745 (HEAD -> develop)
```

[stardiviner]=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <Hack this world!>=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 GPG key ID: 47C32433
IRC(freeenode): stardiv= iner =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Twitter:=C2=A0 @numbchild
= Key fingerprint =3D 9BAA 92BC CDDD B9EF 3B36=C2=A0 CB99 B8C4 B8E5 47C3 2433=
Blog: http:= //stardiviner.github.io/
--f403045f581a306cd20552aadc3d--