Weird graphs

20 views
Skip to first unread message

Lemures Lemniscati

unread,
Apr 17, 2017, 7:49:29 AM4/17/17
to gitl...@googlegroups.com
Hi,

We see weird graphs sometimes on GitLab.
They will be reproduced by the following steps.

(1) Clone an empty project on GitLab.com
and do on a local repository:

git config user.name 'Some One'
git config user.email 'som...@example.com'

git commit --allow-empty -m 'An empty commit'
sleep 2

echo TEST FILE A > a
git add .
git commit -m 'Add a file `a`'
sleep 2

git push -u origin master
sleep 2

echo TEST FILE B > b
git add .
git commit -m 'Add a file `b`'
sleep 2

git checkout -b branch_n origin/master
echo TEST FILE N > n
git add .
git commit -m 'Add a file `n`'
sleep 2

git push -u origin branch_n
sleep 2

git checkout master
git push
sleep 2

echo TEST FILE C > c
git add .
git commit -m 'Add a file `c`'
sleep 2

git push
sleep 2

git merge --no-edit branch_n
sleep 2

git push


(2) Browse the graph page of the project

We will see branch_n above master,
and get a weird graph.


(3) Check a box 'Begin with the selected commit'

And we get a graph, which is the one expected:
`n` is placed between `c` and `b`.


Is this a known issue?

Regards,

--
Lemures Lemniscati <lemures.l...@gmail.com>

Lemures Lemniscati

unread,
Apr 17, 2017, 8:12:20 AM4/17/17
to gitl...@googlegroups.com
Here is an example weird graph.

https://gitlab.com/trust-me-not/test-graph/network/master

Please, check 'Begin with the selected commit',
and we get a graph expected.

--
Lemures Lemniscati <lemures.l...@gmail.com>


==
Subject: Weird graphs
Date: Mon, 17 Apr 2017 20:49:22 +0900
From: Lemures Lemniscati <lemures.l...@gmail.com>
Reply all
Reply to author
Forward
0 new messages