Commit 98dc8bb90be0a1d6df6ce437fcf0c72590519058

Authored by Shrikant Sharat
1 parent 5d3a3ee01c

git's output is so unreliable.

We need a different way to check if git is doing what its supposed to do.

Showing 11 changed files with 18 additions and 80 deletions Inline Diff

tests/branch-bundle.t
1 Branch b1. 1 Branch b1.
2 2
3 $ pg branch b1 3 $ pg branch b1
4 $ pg checkout b1 4 $ pg checkout b1
5 Switched to branch 'b1' 5 Switched to branch 'b1'
6 $ cat > $PLUGIN_DIR/aliases.zsh <<EOF 6 $ cat > $PLUGIN_DIR/aliases.zsh <<EOF
7 > alias hehe='echo hehe from b1' 7 > alias hehe='echo hehe from b1'
8 > EOF 8 > EOF
9 $ pg commit -am 'Change for b1' 9 $ pg commit -am 'Change for b1'
10 \[b1 [a-f0-9]{7}\] Change for b1 (re) 10 \[b1 [a-f0-9]{7}\] Change for b1 (re)
11 1 file changed, 1 insertion(+), 1 deletion(-) 11 1 file changed, 1 insertion(+), 1 deletion(-)
12 12
13 Go back to master. 13 Go back to master.
14 14
15 $ pg checkout master 15 $ pg checkout master
16 Switched to branch 'master' 16 Switched to branch 'master'
17 17
18 Load plugin from b1. 18 Load plugin from b1.
19 19
20 $ antigen-bundle $PLUGIN_DIR --branch=b1 20 $ antigen-bundle $PLUGIN_DIR --branch=b1 &> /dev/null
21 Cloning into '.+?'\.\.\. (re)
22 done.
23 Checking connectivity... done
24 Switched to a new branch 'b1'
25 Branch b1 set up to track remote branch b1 from origin.
26 $ hehe 21 $ hehe
27 hehe from b1 22 hehe from b1
28 23
29 Does not say 'Already on b1' on each session startup. 24 Does not say 'Already on b1' on each session startup.
30 25
31 $ antigen-bundle $PLUGIN_DIR --branch=b1 26 $ antigen-bundle $PLUGIN_DIR --branch=b1
32 27
33 Load plugin from master. 28 Load plugin from master.
34 29
35 $ antigen-bundle $PLUGIN_DIR 30 $ antigen-bundle $PLUGIN_DIR &> /dev/null
36 Cloning into '.+?'\.\.\. (re)
37 done.
38 Checking connectivity... done
39 $ hehe 31 $ hehe
40 hehe 32 hehe
41 33
1 Load plugin from master. 1 Load plugin from master.
2 2
3 $ antigen-bundle $PLUGIN_DIR 3 $ antigen-bundle $PLUGIN_DIR &> /dev/null
4 Cloning into '*'... (glob)
5 done.
6 Checking connectivity... done
7 $ hehe 4 $ hehe
8 hehe 5 hehe
9 6
10 Load the plugin again. Just to see nothing happens. 7 Load the plugin again. Just to see nothing happens.
11 8
12 $ antigen-bundle $PLUGIN_DIR 9 $ antigen-bundle $PLUGIN_DIR
13 $ hehe 10 $ hehe
14 hehe 11 hehe
15 12
16 Confirm there is still only one repository. 13 Confirm there is still only one repository.
17 14
18 $ ls $ADOTDIR/repos | wc -l 15 $ ls $ADOTDIR/repos | wc -l
19 1 16 1
20 17
21 Load a prezto style module. Should only source the `init.zsh` present in the 18 Load a prezto style module. Should only source the `init.zsh` present in the
22 module. 19 module.
23 20
24 $ antigen-bundle $PLUGIN_DIR2 21 $ antigen-bundle $PLUGIN_DIR2 &> /dev/null
25 Cloning into '*'... (glob)
26 done.
27 Checking connectivity... done
28 $ hehe2 22 $ hehe2
29 hehe2 23 hehe2
30 24
31 The alias defined in the other zsh file should not be available. 25 The alias defined in the other zsh file should not be available.
32 26
33 $ unsourced-alias 27 $ unsourced-alias
34 zsh: command not found: unsourced-alias 28 zsh: command not found: unsourced-alias
35 [127] 29 [127]
36 30
1 Add multiple bundles. 1 Add multiple bundles.
2 2
3 $ echo "$PLUGIN_DIR\n$PLUGIN_DIR2" | antigen-bundles 3 $ echo "$PLUGIN_DIR\n$PLUGIN_DIR2" | antigen-bundles &> /dev/null
4 Cloning into '.+?'\.\.\. (re)
5 done.
6 Checking connectivity... done
7 Cloning into '.+?'\.\.\. (re)
8 done.
9 Checking connectivity... done
10 4
11 Check if they are both applied. 5 Check if they are both applied.
12 6
13 $ hehe 7 $ hehe
14 hehe 8 hehe
15 $ hehe2 9 $ hehe2
16 hehe2 10 hehe2
17 11
18 Clean it all up. 12 Clean it all up.
19 13
20 $ export _ANTIGEN_BUNDLE_RECORD="" 14 $ export _ANTIGEN_BUNDLE_RECORD=""
21 $ antigen-cleanup --force &> /dev/null 15 $ antigen-cleanup --force &> /dev/null
22 16
23 Specify with indentation. 17 Specify with indentation.
24 18
25 $ echo " $PLUGIN_DIR\n $PLUGIN_DIR2" | antigen-bundles 19 $ echo " $PLUGIN_DIR\n $PLUGIN_DIR2" | antigen-bundles &> /dev/null
26 Cloning into '.+?'\.\.\. (re)
27 done.
28 Checking connectivity... done
29 Cloning into '.+?'\.\.\. (re)
30 done.
31 Checking connectivity... done
32 20
33 Again, check if they are both applied. 21 Again, check if they are both applied.
34 22
35 $ hehe 23 $ hehe
36 hehe 24 hehe
37 $ hehe2 25 $ hehe2
38 hehe2 26 hehe2
39 27
1 Firstly, no plugins, nothing to cleanup. 1 Firstly, no plugins, nothing to cleanup.
2 2
3 $ antigen-cleanup --force 3 $ antigen-cleanup --force
4 You don't have any bundles. 4 You don't have any bundles.
5 5
6 Load the plugins. 6 Load the plugins.
7 7
8 $ antigen-bundle $PLUGIN_DIR 8 $ antigen-bundle $PLUGIN_DIR &> /dev/null
9 Cloning into '*'... (glob) 9 $ antigen-bundle $PLUGIN_DIR2 &> /dev/null
10 done.
11 Checking connectivity... done
12 $ antigen-bundle $PLUGIN_DIR2
13 Cloning into '*'... (glob)
14 done.
15 Checking connectivity... done
16 10
17 Check the listing. 11 Check the listing.
18 12
19 $ antigen-list 13 $ antigen-list
20 */test-plugin / plugin true (glob) 14 */test-plugin / plugin true (glob)
21 */test-plugin2 / plugin true (glob) 15 */test-plugin2 / plugin true (glob)
22 16
23 Nothing should be available for cleanup. 17 Nothing should be available for cleanup.
24 18
25 $ antigen-cleanup --force 19 $ antigen-cleanup --force
26 You don't have any unidentified bundles. 20 You don't have any unidentified bundles.
27 21
28 Clear out the bundles record. 22 Clear out the bundles record.
29 23
30 $ _ANTIGEN_BUNDLE_RECORD="" 24 $ _ANTIGEN_BUNDLE_RECORD=""
31 25
32 Check the listing, after clearing the record. 26 Check the listing, after clearing the record.
33 27
34 $ antigen-list 28 $ antigen-list
35 You don't have any bundles. 29 You don't have any bundles.
36 [1] 30 [1]
37 31
38 Confirm the plugin directory exists. 32 Confirm the plugin directory exists.
39 33
40 $ ls dot-antigen/repos | wc -l 34 $ ls dot-antigen/repos | wc -l
41 2 35 2
42 36
43 Do the cleanup. 37 Do the cleanup.
44 38
45 $ antigen-cleanup --force 39 $ antigen-cleanup --force
46 You have clones for the following repos, but are not used. 40 You have clones for the following repos, but are not used.
47 */test-plugin (glob) 41 */test-plugin (glob)
48 */test-plugin2 (glob) 42 */test-plugin2 (glob)
49 43
50 44
51 Deleting clone for */test-plugin... done. (glob) 45 Deleting clone for */test-plugin... done. (glob)
52 Deleting clone for */test-plugin2... done. (glob) 46 Deleting clone for */test-plugin2... done. (glob)
53 47
54 Check the listing, after cleanup. 48 Check the listing, after cleanup.
55 49
56 $ antigen-list 50 $ antigen-list
57 You don't have any bundles. 51 You don't have any bundles.
58 [1] 52 [1]
59 53
60 Confirm the plugin directory does not exist after cleanup. 54 Confirm the plugin directory does not exist after cleanup.
61 55
62 $ ls dot-antigen/repos | wc -l 56 $ ls dot-antigen/repos | wc -l
63 0 57 0
64 58
1 Empty initial listing. 1 Empty initial listing.
2 2
3 $ antigen-list 3 $ antigen-list
4 You don't have any bundles. 4 You don't have any bundles.
5 [1] 5 [1]
6 6
7 Add a bundle. 7 Add a bundle.
8 8
9 $ antigen-bundle $PLUGIN_DIR 9 $ antigen-bundle $PLUGIN_DIR &> /dev/null
10 Cloning into '.+?'\.\.\. (re)
11 done.
12 Checking connectivity... done
13 $ antigen-list 10 $ antigen-list
14 */test-plugin / plugin true (glob) 11 */test-plugin / plugin true (glob)
15 12
16 Add same bundle and check uniqueness. 13 Add same bundle and check uniqueness.
17 14
18 $ antigen-bundle $PLUGIN_DIR 15 $ antigen-bundle $PLUGIN_DIR
19 $ antigen-list 16 $ antigen-list
20 */test-plugin / plugin true (glob) 17 */test-plugin / plugin true (glob)
21 18
22 Add another bundle. 19 Add another bundle.
23 20
24 $ antigen-bundle $PLUGIN_DIR2 21 $ antigen-bundle $PLUGIN_DIR2 &> /dev/null
25 Cloning into '.+?'\.\.\. (re)
26 done.
27 Checking connectivity... done
28 $ antigen-list 22 $ antigen-list
29 */test-plugin / plugin true (glob) 23 */test-plugin / plugin true (glob)
30 */test-plugin2 / plugin true (glob) 24 */test-plugin2 / plugin true (glob)
31 25
tests/no_local_clone.t
1 Load the plugin with no local clone. 1 Load the plugin with no local clone.
2 2
3 $ antigen-bundle $PLUGIN_DIR --no-local-clone 3 $ antigen-bundle $PLUGIN_DIR --no-local-clone
4 4
5 Check if the plugin is loaded correctly. 5 Check if the plugin is loaded correctly.
6 6
7 $ hehe 7 $ hehe
8 hehe 8 hehe
9 9
10 Confirm no clone is made. 10 Confirm no clone is made.
11 11
12 $ test -d dot-antigen 12 $ test -d dot-antigen
13 [1] 13 [1]
14 14
15 Load the plugin with a clone. 15 Load the plugin with a clone.
16 16
17 $ antigen-bundle $PLUGIN_DIR 17 $ antigen-bundle $PLUGIN_DIR &> /dev/null
18 Cloning into '*'... (glob)
19 done.
20 Checking connectivity... done
21 18
22 Empty the record. 19 Empty the record.
23 20
24 $ _ANTIGEN_BUNDLE_RECORD= 21 $ _ANTIGEN_BUNDLE_RECORD=
25 22
26 Load the plugin again with no local clone. 23 Load the plugin again with no local clone.
27 24
28 $ antigen-bundle $PLUGIN_DIR --no-local-clone 25 $ antigen-bundle $PLUGIN_DIR --no-local-clone
29 26
30 The cleanup should list the bundle's clone. 27 The cleanup should list the bundle's clone.
31 28
32 $ antigen-cleanup --force 29 $ antigen-cleanup --force
33 You have clones for the following repos, but are not used. 30 You have clones for the following repos, but are not used.
34 */test-plugin (glob) 31 */test-plugin (glob)
35 32
36 33
37 Deleting clone for */test-plugin... done. (glob) 34 Deleting clone for */test-plugin... done. (glob)
38 35
tests/revert-update.t
1 Load and test plugin. 1 Load and test plugin.
2 2
3 $ antigen-bundle $PLUGIN_DIR 3 $ antigen-bundle $PLUGIN_DIR &> /dev/null
4 Cloning into '.+?'\.\.\. (re)
5 done.
6 Checking connectivity... done
7 $ hehe 4 $ hehe
8 hehe 5 hehe
9 6
10 Save the current HEAD of the plugin. 7 Save the current HEAD of the plugin.
11 8
12 $ old_version="$(pg rev-parse HEAD)" 9 $ old_version="$(pg rev-parse HEAD)"
13 10
14 Modify the plugin. 11 Modify the plugin.
15 12
16 $ cat > $PLUGIN_DIR/aliases.zsh <<EOF 13 $ cat > $PLUGIN_DIR/aliases.zsh <<EOF
17 > alias hehe='echo hehe, updated' 14 > alias hehe='echo hehe, updated'
18 > EOF 15 > EOF
19 $ pg commit -am 'Updated message' 16 $ pg commit -am 'Updated message'
20 \[master [a-f0-9]{7}\] Updated message (re) 17 \[master [a-f0-9]{7}\] Updated message (re)
21 1 file changed, 1 insertion(+), 1 deletion(-) 18 1 file changed, 1 insertion(+), 1 deletion(-)
22 19
23 Save the new HEAD of the plugin. 20 Save the new HEAD of the plugin.
24 21
25 $ new_version="$(pg rev-parse HEAD)" 22 $ new_version="$(pg rev-parse HEAD)"
26 23
27 Define a convenience function to get the current version. 24 Define a convenience function to get the current version.
28 25
29 $ current-version () {(cd dot-antigen/repos/* && git rev-parse HEAD)} 26 $ current-version () {(cd dot-antigen/repos/* && git rev-parse HEAD)}
30 27
31 Confirm we currently have the old version. 28 Confirm we currently have the old version.
32 29
33 $ [[ $(current-version) == $old_version ]] 30 $ [[ $(current-version) == $old_version ]]
34 31
35 Run antigen's update. 32 Run antigen's update.
36 33
37 $ antigen-update 34 $ antigen-update
38 **** Pulling */test-plugin (glob) 35 **** Pulling */test-plugin (glob)
39 From */test-plugin (glob) 36 From */test-plugin (glob)
40 ???????..??????? master -> origin/master (glob) 37 ???????..??????? master -> origin/master (glob)
41 Updating ???????..??????? (glob) 38 Updating ???????..??????? (glob)
42 Fast-forward 39 Fast-forward
43 aliases.zsh |\s+2 \+- (re) 40 aliases.zsh |\s+2 \+- (re)
44 1 file changed, 1 insertion(+), 1 deletion(-) 41 1 file changed, 1 insertion(+), 1 deletion(-)
45 Updated from ??????? to ???????. (glob) 42 Updated from ??????? to ???????. (glob)
46 ??????? Updated message (glob) 43 ??????? Updated message (glob)
47 aliases.zsh |\s+2 +- (re) 44 aliases.zsh |\s+2 +- (re)
48 1 file changed, 1 insertion(+), 1 deletion(-) 45 1 file changed, 1 insertion(+), 1 deletion(-)
49 46
50 47
51 Confirm we have the new version. 48 Confirm we have the new version.
52 49
53 $ [[ $(current-version) == $new_version ]] 50 $ [[ $(current-version) == $new_version ]]
54 51
55 Run update again, with no changes in the origin repo. 52 Run update again, with no changes in the origin repo.
56 53
57 $ antigen-revert 54 $ antigen-revert
58 Reverted to state before running -update on *. (glob) 55 Reverted to state before running -update on *. (glob)
59 56
60 Confirm we have the old version again. 57 Confirm we have the old version again.
61 58
62 $ [[ $(current-version) == $old_version ]] 59 $ [[ $(current-version) == $old_version ]]
63 60
1 Set environment variables for this test case 1 Set environment variables for this test case
2 2
3 $ export TEST_DIR=$PWD 3 $ export TEST_DIR=$PWD
4 $ export TEST_HOST=$TEST_DIR/host 4 $ export TEST_HOST=$TEST_DIR/host
5 $ export TEST_NORMAL=$TEST_DIR/client 5 $ export TEST_NORMAL=$TEST_DIR/client
6 $ export TEST_SUBMODULE=$TEST_DIR/submodule 6 $ export TEST_SUBMODULE=$TEST_DIR/submodule
7 7
8 Create fake host repository 8 Create fake host repository
9 9
10 $ mkdir -p $TEST_HOST 10 $ mkdir -p $TEST_HOST
11 $ cd $TEST_HOST 11 $ cd $TEST_HOST
12 $ git init 12 $ git init
13 Initialized empty Git repository in * (glob) 13 Initialized empty Git repository in * (glob)
14 $ echo 1 > ver 14 $ echo 1 > ver
15 $ git add ver 15 $ git add ver
16 $ git commit -m "1" 16 $ git commit -m "1"
17 [master (root-commit) ???????] 1 (glob) 17 [master (root-commit) ???????] 1 (glob)
18 1 file changed, 1 insertion(+) 18 1 file changed, 1 insertion(+)
19 create mode 100644 ver 19 create mode 100644 ver
20 20
21 Create a normal repository cloning from host 21 Create a normal repository cloning from host
22 22
23 $ git clone $TEST_HOST $TEST_NORMAL 23 $ git clone $TEST_HOST $TEST_NORMAL &> /dev/null
24 Cloning into * (glob)
25 done.
26 Checking connectivity... done
27 24
28 Create a submodule repository cloning from host 25 Create a submodule repository cloning from host
29 26
30 $ mkdir -p $TEST_SUBMODULE 27 $ mkdir -p $TEST_SUBMODULE
31 $ cd $TEST_SUBMODULE 28 $ cd $TEST_SUBMODULE
32 $ git init 29 $ git init
33 Initialized empty Git repository in * (glob) 30 Initialized empty Git repository in * (glob)
34 $ git submodule add $TEST_HOST antigen 31 $ git submodule add $TEST_HOST antigen &> /dev/null
35 Cloning into 'antigen'...
36 done.
37 Checking connectivity... done
38 $ git commit -m "1" 32 $ git commit -m "1"
39 [master (root-commit) ???????] 1 (glob) 33 [master (root-commit) ???????] 1 (glob)
40 2 files changed, 4 insertions(+) 34 2 files changed, 4 insertions(+)
41 create mode 100644 .gitmodules 35 create mode 100644 .gitmodules
42 create mode 160000 antigen 36 create mode 160000 antigen
43 37
44 Update host repository 38 Update host repository
45 39
46 $ cd $TEST_HOST 40 $ cd $TEST_HOST
47 $ echo 2 > ver 41 $ echo 2 > ver
48 $ git add ver 42 $ git add ver
49 $ git commit -m "2" 43 $ git commit -m "2"
50 [master ???????] 2 (glob) 44 [master ???????] 2 (glob)
51 1 file changed, 1 insertion(+), 1 deletion(-) 45 1 file changed, 1 insertion(+), 1 deletion(-)
52 46
53 Use selfupdate from normal repository 47 Use selfupdate from normal repository
54 48
55 $ _ANTIGEN_INSTALL_DIR=$TEST_NORMAL antigen-selfupdate 49 $ _ANTIGEN_INSTALL_DIR=$TEST_NORMAL antigen-selfupdate
56 From * (glob) 50 From * (glob)
57 ???????..??????? master -> origin/master (glob) 51 ???????..??????? master -> origin/master (glob)
58 Updating ???????..??????? (glob) 52 Updating ???????..??????? (glob)
59 Fast-forward 53 Fast-forward
60 ver | 2 +- 54 ver | 2 +-
61 1 file changed, 1 insertion(+), 1 deletion(-) 55 1 file changed, 1 insertion(+), 1 deletion(-)
62 $ _ANTIGEN_INSTALL_DIR=$TEST_NORMAL antigen-selfupdate 56 $ _ANTIGEN_INSTALL_DIR=$TEST_NORMAL antigen-selfupdate
63 Already up-to-date. 57 Already up-to-date.
64 58
65 Use selfupdate from submodule repository 59 Use selfupdate from submodule repository
66 60
67 $ _ANTIGEN_INSTALL_DIR=$TEST_SUBMODULE/antigen antigen-selfupdate 61 $ _ANTIGEN_INSTALL_DIR=$TEST_SUBMODULE/antigen antigen-selfupdate
68 From * (glob) 62 From * (glob)
69 ???????..??????? master -> origin/master (glob) 63 ???????..??????? master -> origin/master (glob)
70 Updating ???????..??????? (glob) 64 Updating ???????..??????? (glob)
71 Fast-forward 65 Fast-forward
72 ver | 2 +- 66 ver | 2 +-
73 1 file changed, 1 insertion(+), 1 deletion(-) 67 1 file changed, 1 insertion(+), 1 deletion(-)
74 $ _ANTIGEN_INSTALL_DIR=$TEST_SUBMODULE/antigen antigen-selfupdate 68 $ _ANTIGEN_INSTALL_DIR=$TEST_SUBMODULE/antigen antigen-selfupdate
75 Already up-to-date. 69 Already up-to-date.
76 70
1 Load a couple of plugins. 1 Load a couple of plugins.
2 2
3 $ antigen-bundle $PLUGIN_DIR 3 $ antigen-bundle $PLUGIN_DIR &> /dev/null
4 Cloning into '*'... (glob) 4 $ antigen-bundle $PLUGIN_DIR2 &> /dev/null
5 done.
6 Checking connectivity... done
7 $ antigen-bundle $PLUGIN_DIR2
8 Cloning into '*'... (glob)
9 done.
10 Checking connectivity... done
11 5
12 Create a snapshot file. 6 Create a snapshot file.
13 7
14 $ test -f snapshot-file 8 $ test -f snapshot-file
15 [1] 9 [1]
16 $ antigen-snapshot snapshot-file 10 $ antigen-snapshot snapshot-file
17 $ test -f snapshot-file 11 $ test -f snapshot-file
18 12
19 See the contents of the snapshot file. 13 See the contents of the snapshot file.
20 14
21 $ cat snapshot-file 15 $ cat snapshot-file
22 version='1'; created_on='*'; checksum='*'; (glob) 16 version='1'; created_on='*'; checksum='*'; (glob)
23 .{40} .*/test-plugin (re) 17 .{40} .*/test-plugin (re)
24 .{40} .*/test-plugin2 (re) 18 .{40} .*/test-plugin2 (re)
25 19
26 Reset the antigen's bundle record and run cleanup. 20 Reset the antigen's bundle record and run cleanup.
27 21
28 $ unset _ANTIGEN_BUNDLE_RECORD 22 $ unset _ANTIGEN_BUNDLE_RECORD
29 $ antigen-cleanup --force | grep '^Deleting' | wc -l 23 $ antigen-cleanup --force | grep '^Deleting' | wc -l
30 2 24 2
31 25
32 Restore from the snapshot. 26 Restore from the snapshot.
33 27
34 $ ls dot-antigen/repos | wc -l 28 $ ls dot-antigen/repos | wc -l
35 0 29 0
36 $ antigen-restore snapshot-file 30 $ antigen-restore snapshot-file
37 Restoring from snapshot-file... done. 31 Restoring from snapshot-file... done.
38 Please open a new shell to get the restored changes. 32 Please open a new shell to get the restored changes.
39 $ ls dot-antigen/repos | wc -l 33 $ ls dot-antigen/repos | wc -l
40 2 34 2
41 35
1 Load the theme explicitly. 1 Load the theme explicitly.
2 2
3 $ antigen-theme $PLUGIN_DIR silly 3 $ antigen-theme $PLUGIN_DIR silly &> /dev/null
4 Cloning into '*'... (glob)
5 done.
6 Checking connectivity... done
7 $ echo "$PS1" 4 $ echo "$PS1"
8 prompt> 5 prompt>
9 6
1 Load plugin. 1 Load plugin.
2 2
3 $ antigen-bundle $PLUGIN_DIR 3 $ antigen-bundle $PLUGIN_DIR &> /dev/null
4 Cloning into '.+?'\.\.\. (re)
5 done.
6 Checking connectivity... done
7 $ hehe 4 $ hehe
8 hehe 5 hehe
9 6
10 Update the plugin. 7 Update the plugin.
11 8
12 $ cat > $PLUGIN_DIR/aliases.zsh <<EOF 9 $ cat > $PLUGIN_DIR/aliases.zsh <<EOF
13 > alias hehe='echo hehe, updated' 10 > alias hehe='echo hehe, updated'
14 > EOF 11 > EOF
15 $ pg commit -am 'Updated message' 12 $ pg commit -am 'Updated message'
16 \[master [a-f0-9]{7}\] Updated message (re) 13 \[master [a-f0-9]{7}\] Updated message (re)
17 1 file changed, 1 insertion(+), 1 deletion(-) 14 1 file changed, 1 insertion(+), 1 deletion(-)
18 15
19 Run antigen's update. 16 Run antigen's update.
20 17
21 $ antigen-update 18 $ antigen-update
22 **** Pulling */test-plugin (glob) 19 **** Pulling */test-plugin (glob)
23 From */test-plugin (glob) 20 From */test-plugin (glob)
24 ???????..??????? master -> origin/master (glob) 21 ???????..??????? master -> origin/master (glob)
25 Updating ???????..??????? (glob) 22 Updating ???????..??????? (glob)
26 Fast-forward 23 Fast-forward
27 aliases.zsh |\s+2 \+- (re) 24 aliases.zsh |\s+2 \+- (re)
28 1 file changed, 1 insertion(+), 1 deletion(-) 25 1 file changed, 1 insertion(+), 1 deletion(-)
29 Updated from ??????? to ???????. (glob) 26 Updated from ??????? to ???????. (glob)
30 ??????? Updated message (glob) 27 ??????? Updated message (glob)
31 aliases.zsh |\s+2 \+- (re) 28 aliases.zsh |\s+2 \+- (re)
32 1 file changed, 1 insertion(+), 1 deletion(-) 29 1 file changed, 1 insertion(+), 1 deletion(-)
33 30
34 31
35 Confirm there is still only one repository. 32 Confirm there is still only one repository.
36 33
37 $ ls $ADOTDIR/repos | wc -l 34 $ ls $ADOTDIR/repos | wc -l
38 1 35 1
39 36
40 The new alias should not activate. 37 The new alias should not activate.
41 38
42 $ hehe 39 $ hehe
43 hehe 40 hehe
44 41
45 Run update again, with no changes in the origin repo. 42 Run update again, with no changes in the origin repo.
46 43
47 $ antigen-update 44 $ antigen-update
48 **** Pulling */test-plugin (glob) 45 **** Pulling */test-plugin (glob)
49 Already up-to-date. 46 Already up-to-date.
50 47
51 48