Blame view

tests/update.t 1.06 KB
0952e605d   Shrikant Sharat   Separate and more...
1
2
3
4
5
  Load plugin.
  
    $ antigen-bundle $PLUGIN_DIR
    Cloning into '.+?'\.\.\. (re)
    done.
dc2d37ff0   Shrikant Sharat   It appears git ch...
6
    Checking connectivity... done
0952e605d   Shrikant Sharat   Separate and more...
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
    $ hehe
    hehe
  
  Update the plugin.
  
    $ cat > $PLUGIN_DIR/aliases.zsh <<EOF
    > alias hehe='echo hehe, updated'
    > EOF
    $ pg commit -am 'Updated message'
    \[master [a-f0-9]{7}\] Updated message (re)
     1 file changed, 1 insertion(+), 1 deletion(-)
  
  Run antigen's update.
  
    $ antigen-update
    **** Pulling */test-plugin (glob)
    From */test-plugin (glob)
       ???????..???????  master     -> origin/master (glob)
    Updating ???????..??????? (glob)
    Fast-forward
532a56441   Shrikant Sharat   Fix mild output f...
27
     aliases.zsh |\s+2 \+- (re)
0952e605d   Shrikant Sharat   Separate and more...
28
29
30
     1 file changed, 1 insertion(+), 1 deletion(-)
    Updated from ??????? to ???????. (glob)
    ??????? Updated message (glob)
532a56441   Shrikant Sharat   Fix mild output f...
31
     aliases.zsh |\s+2 \+- (re)
0952e605d   Shrikant Sharat   Separate and more...
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
     1 file changed, 1 insertion(+), 1 deletion(-)
    
  
  Confirm there is still only one repository.
  
    $ ls $ADOTDIR/repos | wc -l
    1
  
  The new alias should not activate.
  
    $ hehe
    hehe
  
  Run update again, with no changes in the origin repo.
  
    $ antigen-update
    **** Pulling */test-plugin (glob)
    Already up-to-date.