~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerheadd

  • Committer: Danilo Segan
  • Date: 2011-09-02 10:22:52 UTC
  • mfrom: (455.1.2 bug-839395)
  • Revision ID: danilo@canonical.com-20110902102252-phc11upmjw8tz1mg
[r=jam][bug=839395] Do not crash when someone asks to look at per-revision changes for a file when file is not changed in a certain revision.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
LHUSER=loggerhead
18
18
 
19
 
if [ `whoami` = "$LHUSER" ]; then                                                                                   
 
19
if [ `whoami` = "$LHUSER" ]; then
20
20
    SUDO=""
21
 
else                                                                                                                
 
21
else
22
22
    SUDO="sudo -H -u $LHUSER"
23
23
fi
24
24